Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportElevationModel.java @ 3949:145b87bcb10a
Some minor bugfixes for MINFO import.
flys-backend/trunk@5586 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 24 Sep 2012 09:14:48 +0000 |
parents | f283212966e8 |
children | 5d8db3349b77 |
comparison
equal
deleted
inserted
replaced
3948:883dd49d5e74 | 3949:145b87bcb10a |
---|---|
31 public void storeDependencies() { | 31 public void storeDependencies() { |
32 ElevationModel model = getPeer(); | 32 ElevationModel model = getPeer(); |
33 } | 33 } |
34 | 34 |
35 public ElevationModel getPeer() { | 35 public ElevationModel getPeer() { |
36 if (unit == null) { | |
37 log.warn("No elevation model specified."); | |
38 return null; | |
39 } | |
40 | |
36 if (peer == null) { | 41 if (peer == null) { |
37 Session session = ImporterSession.getInstance().getDatabaseSession(); | 42 Session session = ImporterSession.getInstance().getDatabaseSession(); |
38 Query query = session.createQuery( | 43 Query query = session.createQuery( |
39 "from ElevationModel where " + | 44 "from ElevationModel where " + |
40 "name=:name and unit=:unit"); | 45 "name=:name and unit=:unit"); |