[Lada-commits] [PATCH 3 of 3] Removed rule for entnahmeOrt since it is not possible to create a messprogramm

Wald Commits scm-commit at wald.intevation.org
Fri Jan 27 17:09:05 CET 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1485533339 -3600
# Node ID 01e399476a9381fce178c414338e604d3d94b90a
# Parent  ff12c3e3366ac21fa656eeb42b74c202fad6fce6
Removed rule for entnahmeOrt since it is not possible to create a messprogramm.

diff -r ff12c3e3366a -r 01e399476a93 src/main/java/de/intevation/lada/validation/rules/messprogramm/HasAllMandatory.java
--- 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


More information about the Lada-commits mailing list