firstName and lastName are mandatory in database
This commit is contained in:
parent
d4d7a5a2b0
commit
ee11acdaab
@ -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}\\-\\ ]*")
|
||||||
|
Loading…
Reference in New Issue
Block a user