changeset 1338:ffbf9cff4aa6

Do not persist existing ort object in importer.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 07 Apr 2017 08:53:41 +0200
parents 462226615381
children 3f6a77c9efc9
files src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java	Thu Apr 06 17:15:55 2017 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java	Fri Apr 07 08:53:41 2017 +0200
@@ -750,6 +750,9 @@
             }
             return null;
         }
+        if (o.getId() != null) {
+            return o;
+        }
         repository.create(o, "stamm");
         return o;
     }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)