changeset 336:7f13ed751277

Fixed broken HQL statement. flys-artifacts/trunk@1735 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 20 Apr 2011 08:00:38 +0000
parents 64cfbd631f29
children ec17fad34061
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Apr 19 17:43:39 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Apr 20 08:00:38 2011 +0000
@@ -1,3 +1,8 @@
+2011-04-20  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java:
+	  Fixed broken HQL statement.
+
 2011-04-19	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java	Tue Apr 19 17:43:39 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java	Wed Apr 20 08:00:38 2011 +0000
@@ -97,9 +97,8 @@
         Session session = SessionHolder.HOLDER.get();
 
         Query gaugeQuery = session.createQuery(
-            "from Gauge where name=:gauge and river.name=:river and kind=:kind");
+            "from Gauge where name=:gauge and river.name=:river");
         gaugeQuery.setParameter("river", riverName);
-        gaugeQuery.setInteger("kind", kind);
 
         for (String gaugeName: gaugeNames) {
             gaugeQuery.setParameter("gauge", gaugeName);

http://dive4elements.wald.intevation.org