Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportElevationModel.java @ 3952:5d8db3349b77
Backend: Code simplification. Removed trailing whietspace.
flys-backend/trunk@5605 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 27 Sep 2012 08:08:38 +0000 |
parents | 145b87bcb10a |
children |
comparison
equal
deleted
inserted
replaced
3951:89ada0b9083f | 3952:5d8db3349b77 |
---|---|
35 public ElevationModel getPeer() { | 35 public ElevationModel getPeer() { |
36 if (unit == null) { | 36 if (unit == null) { |
37 log.warn("No elevation model specified."); | 37 log.warn("No elevation model specified."); |
38 return null; | 38 return null; |
39 } | 39 } |
40 | 40 |
41 if (peer == null) { | 41 if (peer == null) { |
42 Session session = ImporterSession.getInstance().getDatabaseSession(); | 42 Session session = ImporterSession.getInstance().getDatabaseSession(); |
43 Query query = session.createQuery( | 43 Query query = session.createQuery( |
44 "from ElevationModel where " + | 44 "from ElevationModel where " + |
45 "name=:name and unit=:unit"); | 45 "name=:name and unit=:unit"); |