firstName and lastName are mandatory in database

This commit is contained in:
Peter Hormanns 2016-08-15 17:52:37 +02:00
parent d4d7a5a2b0
commit ee11acdaab

View File

@ -34,11 +34,13 @@ public class ContactVO extends AbstractVO implements ValueObject {
@Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*") @Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*")
@ReadWrite(ReadWritePolicy.READWRITE) @ReadWrite(ReadWritePolicy.READWRITE)
@Search(SearchPolicy.LIKE) @Search(SearchPolicy.LIKE)
@Required(true)
private String firstName; private String firstName;
@Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*") @Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*")
@ReadWrite(ReadWritePolicy.READWRITE) @ReadWrite(ReadWritePolicy.READWRITE)
@Search(SearchPolicy.LIKE) @Search(SearchPolicy.LIKE)
@Required(true)
private String lastName; private String lastName;
@Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*") @Pattern(regexp="[\\p{L}\\p{Nd}\\-\\ ]*")