# HG changeset patch # User Felix Wolfsteller # 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; }