Bael 736 ver2 (#1693)

* add notnull

* fix formatting
This commit is contained in:
lor6 2017-04-19 22:03:01 +03:00 committed by Grzegorz Piwowarek
parent 2d1379a46a
commit 4c6b529571
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import com.baeldung.dynamicvalidation.ContactInfo;
@ -15,6 +16,7 @@ public class Customer {
private long id;
@ContactInfo
@NotNull
private String contactInfo;
public Customer() {