Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/ImportEdge.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 |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
61 return cmp != 0 ? cmp : compare(bottom, other.bottom); | 61 return cmp != 0 ? cmp : compare(bottom, other.bottom); |
62 } | 62 } |
63 | 63 |
64 public Edge getPeer() { | 64 public Edge getPeer() { |
65 if (peer == null) { | 65 if (peer == null) { |
66 Session session = ImporterSession.getInstance().getDatabaseSession(); | 66 Session session = ImporterSession.getInstance() |
67 .getDatabaseSession(); | |
67 Query query = session.createQuery( | 68 Query query = session.createQuery( |
68 "from Edge where top=:top and bottom=:bottom"); | 69 "from Edge where top=:top and bottom=:bottom"); |
69 query.setParameter("top", top); | 70 query.setParameter("top", top); |
70 query.setParameter("bottom", bottom); | 71 query.setParameter("bottom", bottom); |
71 List<Edge> edges = query.list(); | 72 List<Edge> edges = query.list(); |