Mercurial > lada > lada-server
diff src/main/java/de/intevation/lada/factory/ProbeFactory.java @ 680:a5e6580e8016
Reload the created probe object to have the 'probeIdAlt' field available.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 29 May 2015 11:46:45 +0200 |
parents | 866d05db7a6a |
children | 98d79aa9d996 |
line wrap: on
line diff
--- 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; }