Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportBedHeightSingleValue.java @ 3954:ffb2aac9a5b6
Cosmetics, docs.
flys-backend/trunk@5611 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 27 Sep 2012 10:16:49 +0000 |
parents | 8926571e47fb |
children |
comparison
equal
deleted
inserted
replaced
3953:fc32a4955087 | 3954:ffb2aac9a5b6 |
---|---|
53 public void storeDependencies(BedHeightSingle bedHeight) { | 53 public void storeDependencies(BedHeightSingle bedHeight) { |
54 getPeer(bedHeight); | 54 getPeer(bedHeight); |
55 } | 55 } |
56 | 56 |
57 | 57 |
58 /** | |
59 * Add this value to database or return database bound Value, assuring | |
60 * that the BedHeightSingle exists in db already. | |
61 */ | |
58 public BedHeightSingleValue getPeer(BedHeightSingle bedHeight) { | 62 public BedHeightSingleValue getPeer(BedHeightSingle bedHeight) { |
59 if (peer == null) { | 63 if (peer == null) { |
60 Session session = ImporterSession.getInstance().getDatabaseSession(); | 64 Session session = ImporterSession.getInstance().getDatabaseSession(); |
61 | 65 |
62 Query query = session.createQuery( | 66 Query query = session.createQuery( |