[Lada-commits] [PATCH 1 of 7] Fixed datatype for ba_id attribute

Wald Commits scm-commit at wald.intevation.org
Mon Sep 5 10:20:02 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1472817622 -7200
# Branch schema-update
# Node ID cd16a41ca3abfd36231da7eb8a3949005f3375a7
# Parent  4e0a9c7a8f236bd0de50a0919889e3dd7b4b5bd3
Fixed datatype for ba_id attribute.

diff -r 4e0a9c7a8f23 -r cd16a41ca3ab src/main/java/de/intevation/lada/importer/laf/AttributeMapper.java
--- 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));


More information about the Lada-commits mailing list