Mercurial > lada > lada-server
changeset 243:6a85146d76f5
Changed object type from LProbe to LProbeInfo.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 15 Jul 2013 13:20:42 +0200 |
parents | 04021a8122ba |
children | f3e15ba7c3b7 |
files | src/main/java/de/intevation/lada/validation/LMessungValidator.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/LMessungValidator.java Mon Jul 15 10:47:56 2013 +0200 +++ b/src/main/java/de/intevation/lada/validation/LMessungValidator.java Mon Jul 15 13:20:42 2013 +0200 @@ -12,6 +12,7 @@ import de.intevation.lada.data.Repository; import de.intevation.lada.model.LMessung; import de.intevation.lada.model.LProbe; +import de.intevation.lada.model.LProbeInfo; import de.intevation.lada.rest.Response; /** @@ -82,13 +83,13 @@ String probeId = messung.getProbeId(); Response response = probeRepository.findById(LProbe.class, probeId); @SuppressWarnings("unchecked") - List<LProbe> list = (List<LProbe>) response.getData(); + List<LProbeInfo> list = (List<LProbeInfo>) response.getData(); if (list.isEmpty()) { Map<String, Integer> errors = new HashMap<String, Integer>(); errors.put("lprobe", 604); throw new ValidationException(errors); } - LProbe probe = list.get(0); + LProbeInfo probe = list.get(0); if (probe.getProbeentnahmeEnde().after(messung.getMesszeitpunkt())) { warnings.put("messzeitpunkt", 661); }