Mercurial > lada > lada-server
changeset 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 (2015-05-29) |
parents | 618d1b2f396f |
children | 9a9241275ee6 |
files | src/main/java/de/intevation/lada/factory/ProbeFactory.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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; }