changeset 1272:01e399476a93

Removed rule for entnahmeOrt since it is not possible to create a messprogramm.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 27 Jan 2017 17:08:59 +0100
parents ff12c3e3366a
children dda1309becae
files src/main/java/de/intevation/lada/validation/rules/messprogramm/HasAllMandatory.java
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/rules/messprogramm/HasAllMandatory.java	Fri Jan 27 17:08:16 2017 +0100
+++ b/src/main/java/de/intevation/lada/validation/rules/messprogramm/HasAllMandatory.java	Fri Jan 27 17:08:59 2017 +0100
@@ -67,21 +67,6 @@
         if (messprogramm.getGueltigBis() == null) {
             violation.addError("gueltigBis", 631);
         }
-        QueryBuilder<OrtszuordnungMp> builder =
-            new QueryBuilder<OrtszuordnungMp>(
-                repository.entityManager("land"),
-                OrtszuordnungMp.class);
-        List<OrtszuordnungMp> orte = repository.filterPlain(
-            builder.getQuery(), "land");
-        boolean found = false;
-        for (OrtszuordnungMp ort : orte) {
-            if ("E".equals(ort.getOrtszuordnungTyp())) {
-                found = true;
-            }
-        }
-        if (!found) {
-            violation.addError("entnahmeOrt", 631);
-        }
 
         return violation.hasErrors()
             ? violation
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)