changeset 1037:cd16a41ca3ab schema-update

Fixed datatype for ba_id attribute.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 02 Sep 2016 14:00:22 +0200
parents 4e0a9c7a8f23
children 6f9983f68248
files src/main/java/de/intevation/lada/importer/laf/AttributeMapper.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/importer/laf/AttributeMapper.java	Wed Aug 31 16:24:04 2016 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/AttributeMapper.java	Fri Sep 02 14:00:22 2016 +0200
@@ -36,7 +36,6 @@
 import de.intevation.lada.util.data.QueryBuilder;
 import de.intevation.lada.util.data.Repository;
 import de.intevation.lada.util.data.RepositoryType;
-import de.intevation.lada.util.rest.Response;
 
 /**
  * The AttributeMapper is used to set object attributes via string based
@@ -123,7 +122,7 @@
         }
 
         if ("messprogramm_s".equals(key) && probe.getBaId() == null) {
-            probe.setBaId(value.toString());
+            probe.setBaId(Integer.parseInt(value.toString()));
         }
         else if ("messprogramm_s".equals(key) && probe.getBaId() != null){
             this.warnings.add(new ReportItem(key, value.toString(), 672));
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)