Mercurial > lada > lada-server
diff src/main/java/de/intevation/lada/factory/ProbeFactory.java @ 1215:6e393b614edf
The referencing column does not need to be wider than what it refereces.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 08 Dec 2016 15:23:55 +0100 |
parents | 84ff77bba9b0 |
children | 9dfb52db6a0f |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java Thu Dec 08 14:59:02 2016 +0100 +++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java Thu Dec 08 15:23:55 2016 +0100 @@ -388,7 +388,7 @@ @SuppressWarnings("unchecked") List<Ort> orte = (List<Ort>) ortResponse.getData(); if (orte != null && !orte.isEmpty()) { - ort.setOrtId(Long.valueOf(orte.get(0).getId())); + ort.setOrtId(orte.get(0).getId()); } repository.create(ort, "land"); }