Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/rules/messprogramm/HasAllMandatory.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 | a796e68da1cf |
children | 7ae0fa505abb |
comparison
equal
deleted
inserted
replaced
1096:565c8a67034d | 1097:186d602e031a |
---|---|
22 @Override | 22 @Override |
23 public Violation execute(Object object) { | 23 public Violation execute(Object object) { |
24 Messprogramm messprogramm = (Messprogramm)object; | 24 Messprogramm messprogramm = (Messprogramm)object; |
25 Violation violation = new Violation(); | 25 Violation violation = new Violation(); |
26 | 26 |
27 if (messprogramm.getNetzbetreiberId() == null | |
28 | "".equals(messprogramm.getNetzbetreiberId())) { | |
29 violation.addError("netzbetreiberId", 631); | |
30 } | |
31 if (messprogramm.getMstId() == null | 27 if (messprogramm.getMstId() == null |
32 | "".equals(messprogramm.getMstId())) { | 28 | "".equals(messprogramm.getMstId())) { |
33 violation.addError("mstlabor", 631); | 29 violation.addError("mstlabor", 631); |
34 } | 30 } |
35 if (messprogramm.getLaborMstId() == null | 31 if (messprogramm.getLaborMstId() == null |