Mercurial > dive4elements > river
changeset 8054:db4e6bd367a6
My hint that MeasurementStation does not know it's river was not true. Thus backout rev 8c14588d1f78.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 18 Jul 2014 12:22:51 +0200 |
parents | 72760ca2fc2b |
children | cd35b76f1ef8 |
files | backend/src/main/java/org/dive4elements/river/importer/ImporterSession.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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();