changeset 473:70de916d3e3a

Importer: Forgot kind parameter in peer fetching query. flys-backend/trunk@1713 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Apr 2011 08:15:32 +0000
parents 1e196c75563b
children 5d920695a7f0
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/importer/ImportDischargeTable.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/ChangeLog	Mon Apr 18 07:29:05 2011 +0000
+++ b/flys-backend/ChangeLog	Mon Apr 18 08:15:32 2011 +0000
@@ -1,3 +1,8 @@
+2011-04-18	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/importer/ImportDischargeTable.java:
+	  Forgot kind parameter in peer fetching query.
+	  
 2011-04-18  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/model/River.java::
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportDischargeTable.java	Mon Apr 18 07:29:05 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportDischargeTable.java	Mon Apr 18 08:15:32 2011 +0000
@@ -45,7 +45,7 @@
             Session session = Importer.sessionHolder.get();
 
             Query query = session.createQuery(
-                "from DischargeTable where gauge.id=:gauge");
+                "from DischargeTable where gauge.id=:gauge and kind=:kind");
             query.setParameter("gauge", gauge.getId());
             query.setParameter("kind", kind);
 

http://dive4elements.wald.intevation.org