[Lada-commits] [PATCH] Do not persist existing ort object in importer

Wald Commits scm-commit at wald.intevation.org
Fri Apr 7 08:55:12 CEST 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1491548021 -7200
# Node ID ffbf9cff4aa6f6c1eb58a42fba7e08702ff0ddc6
# Parent  462226615381d2ecbc792949625f2f6b93287d1f
Do not persist existing ort object in importer.

diff -r 462226615381 -r ffbf9cff4aa6 src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java
--- 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;
     }


More information about the Lada-commits mailing list