changeset 1154:7c3d022a899f

Set labor_mst_id to mst_id if missing in laf import.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 08 Nov 2016 10:29:17 +0100
parents 28b177100217
children fec7ba34cd1b
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	Tue Nov 08 10:27:48 2016 +0100
+++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java	Tue Nov 08 10:29:17 2016 +0100
@@ -119,6 +119,9 @@
         for (Entry<String, String> attribute : object.getAttributes().entrySet()) {
             addProbeAttribute(attribute, probe);
         }
+        if (probe.getLaborMstId() == null) {
+            probe.setLaborMstId(probe.getMstId());
+        }
         // Use the deskriptor string to find the medium
         probe = factory.findMediaDesk(probe);
         //logProbe(probe);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)