Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/access/SQRelationAccess.java @ 8412:17db08570637
SCHEMA CHANGE: removed superfluous columns station and river_id from measurement_stations and adapted other components accordingly.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 19:20:26 +0200 |
parents | d8d0caaf60a2 |
children | 8cc192731c7d 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/access/SQRelationAccess.java Wed Oct 15 14:58:46 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/access/SQRelationAccess.java Wed Oct 15 19:20:26 2014 +0200 @@ -99,8 +99,8 @@ if (measurementStation != null) { return measurementStation; } - List<MeasurementStation> candidates = MeasurementStation.getStationsAtKM( - getRiverName(), getLocation()); + List<MeasurementStation> candidates = MeasurementStation + .getStationsAtKM(getRiver(), getLocation()); if (candidates != null && !candidates.isEmpty()) { // Just take the first one as we only use the name // and that "should" be unique at the location