[PATCH 2 of 2] Let hibernate do the parsing/casting
Wald Commits
scm-commit at wald.intevation.org
Thu Aug 29 16:40:36 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1377787073 -7200
# Node ID 735346b3e4389ba134f66191881e665de25ff84b
# Parent 602dac32a996261dc7f665aaf126a48f7e9abe3a
Let hibernate do the parsing/casting.
diff -r 602dac32a996 -r 735346b3e438 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/FlowVelocityMeasurementFactory.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/FlowVelocityMeasurementFactory.java Thu Aug 29 16:33:43 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/FlowVelocityMeasurementFactory.java Thu Aug 29 16:37:53 2013 +0200
@@ -59,10 +59,12 @@
return null;
}
return FlowVelocityMeasurementValue.getUnmapped(
- Double.parseDouble(row[0].toString()),
- Double.parseDouble(row[2].toString()),
- Double.valueOf(row[3].toString()),
- Double.valueOf(row[4].toString()), (Date) row[1], row[5].toString());
+ (Double) row[0],
+ (Double) row[2],
+ (Double) row[3],
+ (Double) row[4],
+ (Date) row[1],
+ (String) row[5]);
}
return null;
}
More information about the Dive4elements-commits
mailing list