changeset 8680:19c38a47a276

(issue1763) We have UNIQUE(station, bedHeight) since Rev 2d16f4a0bdcc and comparing with the other parameters will never return any row if any of them is null.
author Tom Gottfried <tom@intevation.de>
date Fri, 10 Apr 2015 17:42:10 +0200
parents 6e105764ba14
children 1f878c82262f
files backend/src/main/java/org/dive4elements/river/importer/ImportBedHeightValue.java
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/ImportBedHeightValue.java	Fri Apr 10 13:26:59 2015 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/ImportBedHeightValue.java	Fri Apr 10 17:42:10 2015 +0200
@@ -69,18 +69,10 @@
             Query query = session.createQuery(
                 "from BedHeightValue where " +
                 "   bedHeight=:bedHeight and " +
-                "   station=:station and " +
-                "   height=:height and " +
-                "   uncertainty=:uncertainty and " +
-                "   dataGap=:dataGap and " +
-                "   soundingWidth=:soundingWidth");
+                "   station=:station");
 
             query.setParameter("bedHeight", bedHeight);
             query.setParameter("station", station);
-            query.setParameter("height", height);
-            query.setParameter("uncertainty", uncertainty);
-            query.setParameter("dataGap", dataGap);
-            query.setParameter("soundingWidth", soundingWidth);
 
             List<BedHeightValue> values = query.list();
             if (values.isEmpty()) {

http://dive4elements.wald.intevation.org