comparison backend/src/main/java/org/dive4elements/river/importer/ImportLocationSystem.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 session.flush(); 43 session.flush();
44 } 44 }
45 45
46 public LocationSystem getPeer() { 46 public LocationSystem getPeer() {
47 if (peer == null) { 47 if (peer == null) {
48 Session session = ImporterSession.getInstance().getDatabaseSession(); 48 Session session = ImporterSession.getInstance()
49 .getDatabaseSession();
49 Query query = session.createQuery( 50 Query query = session.createQuery(
50 "from LocationSystem where " + 51 "from LocationSystem where " +
51 "name=:name and description=:description"); 52 "name=:name and description=:description");
52 query.setParameter("name", name); 53 query.setParameter("name", name);
53 query.setParameter("description", description); 54 query.setParameter("description", description);

http://dive4elements.wald.intevation.org