diff src/main/java/de/intevation/lada/validation/rules/messung/Date.java @ 1097:186d602e031a

Merged branch schema-update into default.
author Tom Gottfried <tom@intevation.de>
date Fri, 14 Oct 2016 18:17:42 +0200
parents 3ec358698b4d
children 2c4a20e0bc92
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/rules/messung/Date.java	Fri Oct 14 16:11:22 2016 +0200
+++ b/src/main/java/de/intevation/lada/validation/rules/messung/Date.java	Fri Oct 14 18:17:42 2016 +0200
@@ -12,8 +12,8 @@
 
 import javax.inject.Inject;
 
-import de.intevation.lada.model.land.LMessung;
-import de.intevation.lada.model.land.LProbe;
+import de.intevation.lada.model.land.Messung;
+import de.intevation.lada.model.land.Probe;
 import de.intevation.lada.util.annotation.RepositoryConfig;
 import de.intevation.lada.util.data.Repository;
 import de.intevation.lada.util.data.RepositoryType;
@@ -38,10 +38,10 @@
 
     @Override
     public Violation execute(Object object) {
-        LMessung messung = (LMessung)object;
+        Messung messung = (Messung)object;
         Integer probeId = messung.getProbeId();
-        Response response = repository.getById(LProbe.class, probeId, "land");
-        LProbe probe = (LProbe) response.getData();
+        Response response = repository.getById(Probe.class, probeId, "land");
+        Probe probe = (Probe) response.getData();
         if (probe == null) {
             Map<String, Integer> errors = new HashMap<String, Integer>();
             errors.put("lprobe", 604);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)