[Lada-commits] [PATCH 11 of 13] Reload the created probe object to have the 'probeIdAlt' field available

Wald Commits scm-commit at wald.intevation.org
Fri May 29 11:48:21 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1432892805 -7200
# Node ID a5e6580e80169d3f498d4d7d70b52e3e68e4a2a4
# Parent  618d1b2f396f2aa779b1d580afd20e434b6a8acf
Reload the created probe object to have the 'probeIdAlt' field available.

diff -r 618d1b2f396f -r a5e6580e8016 src/main/java/de/intevation/lada/factory/ProbeFactory.java
--- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri May 29 11:46:03 2015 +0200
+++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri May 29 11:46:45 2015 +0200
@@ -184,6 +184,9 @@
             }
             repository.create(ort, "land");
         }
+        // Reolad the probe to have the old id
+        probe =
+            (LProbe)repository.getById(LProbe.class, probe.getId(), "land").getData();
         return probe;
     }
 


More information about the Lada-commits mailing list