Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/ImportBedHeightType.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 4c3ccf2b0304 |
children | a275ddf7a3a1 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
43 } | 43 } |
44 | 44 |
45 | 45 |
46 public BedHeightType getPeer() { | 46 public BedHeightType getPeer() { |
47 if (peer == null) { | 47 if (peer == null) { |
48 Session session = ImporterSession.getInstance().getDatabaseSession(); | 48 Session session = ImporterSession.getInstance() |
49 .getDatabaseSession(); | |
49 | 50 |
50 Query query = session.createQuery( | 51 Query query = session.createQuery("from BedHeightType " |
51 "from BedHeightType where name=:name and description=:description"); | 52 + "where name=:name and description=:description"); |
52 | 53 |
53 query.setParameter("name", name); | 54 query.setParameter("name", name); |
54 | 55 |
55 List<BedHeightType> types = query.list(); | 56 List<BedHeightType> types = query.list(); |
56 | 57 |