Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportAnnotation.java @ 761:3170fe2e7661
Forgot to store reference to edge.
flys-backend/trunk@2111 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 14 Jun 2011 13:55:49 +0000 |
parents | 9f2204ed79ed |
children | 8076f6a689d0 |
comparison
equal
deleted
inserted
replaced
760:c8a2fbc612be | 761:3170fe2e7661 |
---|---|
99 query.setParameter("attribute", a); | 99 query.setParameter("attribute", a); |
100 query.setParameter("position", p); | 100 query.setParameter("position", p); |
101 query.setParameter("edge", e); | 101 query.setParameter("edge", e); |
102 List<Annotation> annotations = query.list(); | 102 List<Annotation> annotations = query.list(); |
103 if (annotations.isEmpty()) { | 103 if (annotations.isEmpty()) { |
104 peer = new Annotation(r, a, p); | 104 peer = new Annotation(r, a, p, e); |
105 session.save(peer); | 105 session.save(peer); |
106 } | 106 } |
107 else { | 107 else { |
108 peer = annotations.get(0); | 108 peer = annotations.get(0); |
109 } | 109 } |