[Dive4elements-commits] [PATCH] Order flow velocity values by station

Wald Commits scm-commit at wald.intevation.org
Tue May 28 11:15:09 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1369732465 -7200
# Node ID b3c5a5f3806621826b2f52e80c8adf8e6a1b09c6
# Parent  b79b400d5de1df392e3a8ff7b1340ad995bc4c51
Order flow velocity values by station.

diff -r b79b400d5de1 -r b3c5a5f38066 backend/src/main/java/org/dive4elements/river/model/FlowVelocityModelValue.java
--- a/backend/src/main/java/org/dive4elements/river/model/FlowVelocityModelValue.java	Mon May 27 17:10:49 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/FlowVelocityModelValue.java	Tue May 28 11:14:25 2013 +0200
@@ -154,7 +154,8 @@
             "from FlowVelocityModelValue where " +
             "   flowVelocity=:model and" +
             "   station >= :kmLo and " +
-            "   station <= :kmHi");
+            "   station <= :kmHi" +
+            "   order by station");
 
         query.setParameter("model", model);
         query.setParameter("kmLo", new BigDecimal(kmLo));


More information about the Dive4elements-commits mailing list