# HG changeset patch # User Raimund Renkert # Date 1373887242 -7200 # Node ID 6a85146d76f58d31242eca74ac2627c90c3d54b0 # Parent 04021a8122ba055bdb4e215463651aec5a70e88d Changed object type from LProbe to LProbeInfo. diff -r 04021a8122ba -r 6a85146d76f5 src/main/java/de/intevation/lada/validation/LMessungValidator.java --- 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 list = (List) response.getData(); + List list = (List) response.getData(); if (list.isEmpty()) { Map errors = new HashMap(); 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); }