[PATCH] My hint that MeasurementStation does not know it's river was not true. Thus backout rev 8c14588d1f78

Wald Commits scm-commit at wald.intevation.org
Fri Jul 18 12:22:54 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1405678971 -7200
# Node ID db4e6bd367a67e0d5849ae6f67ae3c9ce68a7772
# Parent  72760ca2fc2b037393cfd5f73a851f5723771c81
My hint that MeasurementStation does not know it's river was not true. Thus backout rev 8c14588d1f78.

diff -r 72760ca2fc2b -r db4e6bd367a6 backend/src/main/java/org/dive4elements/river/importer/ImporterSession.java
--- a/backend/src/main/java/org/dive4elements/river/importer/ImporterSession.java	Fri Jul 18 11:58:59 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/ImporterSession.java	Fri Jul 18 12:22:51 2014 +0200
@@ -219,7 +219,7 @@
                 new TreeMap<Double, List<MeasurementStation>>(EpsilonComparator.CMP);
             riversToMeasurementStations.put(river, km2Stations);
             Query query = databaseSession.createQuery(
-                "from MeasurementStation as ms inner join ms.range as r where r.river.name = :name");
+                "from MeasurementStation where river.name = :name");
             query.setParameter("name", river);
             for (Iterator iter = query.iterate(); iter.hasNext();) {
                 MeasurementStation st = (MeasurementStation)iter.next();


More information about the Dive4Elements-commits mailing list