Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/Gauge.java @ 3788:71834666447d
Moved some code over from flys-artifacts.
flys-backend/trunk@5400 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 08 Sep 2012 13:31:03 +0000 |
parents | 8d38ee2de514 |
children | 9f92c42b7a81 |
comparison
equal
deleted
inserted
replaced
3787:3b301859ee19 | 3788:71834666447d |
---|---|
282 } | 282 } |
283 | 283 |
284 return new Object[] { days, qs }; | 284 return new Object[] { days, qs }; |
285 } | 285 } |
286 | 286 |
287 | |
288 /** XXX: Can some one (ingo) tell me, what's the difference | |
289 to simple call of getMainValues()? */ | |
290 public List<MainValue> fetchMainValues() { | |
291 // TODO: Use getMainValues() instead. | |
292 Session session = SessionHolder.HOLDER.get(); | |
293 | |
294 Query query = session.createQuery( | |
295 "from MainValue where gauge=:gauge"); | |
296 query.setParameter("gauge", this); | |
297 | |
298 return query.list(); | |
299 } | |
287 } | 300 } |
288 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 301 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |