Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/ImportSedimentLoad.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 | 3ae11daff343 |
children | e8d2042c9639 |
comparison
equal
deleted
inserted
replaced
8411:b8c6cb36607e | 8412:17db08570637 |
---|---|
64 public SedimentLoad getPeer() { | 64 public SedimentLoad getPeer() { |
65 | 65 |
66 if (peer == null) { | 66 if (peer == null) { |
67 Session session = ImporterSession.getInstance().getDatabaseSession(); | 67 Session session = ImporterSession.getInstance().getDatabaseSession(); |
68 | 68 |
69 String sqtquery = sqTimeInterval == null ? | 69 String sqtquery = sqTimeInterval == null |
70 "sq_time_interval_id is null" : | 70 ? "sq_time_interval_id is null" |
71 "sqTimeInterval = :sqTimeInterval"; | 71 : "sqTimeInterval = :sqTimeInterval"; |
72 Query query = session.createQuery( | 72 Query query = session.createQuery( |
73 "from SedimentLoad where " + | 73 "from SedimentLoad where " + |
74 " grainFraction = :grainFraction and " + | 74 " grainFraction = :grainFraction and " + |
75 " timeInterval = :timeInterval and " + | 75 " timeInterval = :timeInterval and " + |
76 " description = :description and " + | 76 " description = :description and " + |