changeset 698:cd22674b4673

Fixed ort generation from messprogramme.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 10 Jul 2015 14:03:56 +0200
parents 8c486052264c
children 51d8d5bacf68
files src/main/java/de/intevation/lada/factory/ProbeFactory.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri Jul 10 14:03:27 2015 +0200
+++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri Jul 10 14:03:56 2015 +0200
@@ -189,14 +189,14 @@
                 repository.create(wert, "land");
             }
         }
-        if (messprogramm.getGemId() != null &&
-            !messprogramm.getGemId().equals("")) {
+        if (messprogramm.getOrtId() != null &&
+            !messprogramm.getOrtId().equals("")) {
             LOrt ort = new LOrt();
             ort.setOrtsTyp("E");
             ort.setProbeId(probe.getId());
             QueryBuilder<SOrt> ortBuilder = new QueryBuilder<SOrt>(
                 repository.entityManager("stamm"), SOrt.class);
-            ortBuilder.and("verwaltungseinheitId", messprogramm.getGemId());
+            ortBuilder.and("id", messprogramm.getOrtId());
             Response ortResponse = repository.filter(ortBuilder.getQuery(), "stamm");
             @SuppressWarnings("unchecked")
             List<SOrt> orte = (List<SOrt>) ortResponse.getData();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)