From ee11acdaabdbd61563cb1d4890fd797fa7be6aaa Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 15 Aug 2016 17:52:37 +0200 Subject: [PATCH] firstName and lastName are mandatory in database --- .../src/main/java/de/hsadmin/service/customer/ContactVO.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/src/main/java/de/hsadmin/service/customer/ContactVO.java b/services/src/main/java/de/hsadmin/service/customer/ContactVO.java index b29562a..8336683 100644 --- a/services/src/main/java/de/hsadmin/service/customer/ContactVO.java +++ b/services/src/main/java/de/hsadmin/service/customer/ContactVO.java @@ -34,11 +34,13 @@ public class ContactVO extends AbstractVO implements ValueObject { @Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*") @ReadWrite(ReadWritePolicy.READWRITE) @Search(SearchPolicy.LIKE) + @Required(true) private String firstName; @Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*") @ReadWrite(ReadWritePolicy.READWRITE) @Search(SearchPolicy.LIKE) + @Required(true) private String lastName; @Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*")