comparison backend/src/main/java/org/dive4elements/river/importer/ImportAnnotationType.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
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
41 } 41 }
42 42
43 43
44 public AnnotationType getPeer() { 44 public AnnotationType getPeer() {
45 if (peer == null) { 45 if (peer == null) {
46 Session session = ImporterSession.getInstance().getDatabaseSession(); 46 Session session = ImporterSession.getInstance()
47 .getDatabaseSession();
47 Query query = session.createQuery( 48 Query query = session.createQuery(
48 "from AnnotationType where name=:name"); 49 "from AnnotationType where name=:name");
49 query.setParameter("name", name); 50 query.setParameter("name", name);
50 List<AnnotationType> types = query.list(); 51 List<AnnotationType> types = query.list();
51 if (types.isEmpty()) { 52 if (types.isEmpty()) {

http://dive4elements.wald.intevation.org