parent
2d1379a46a
commit
4c6b529571
@ -4,6 +4,7 @@ import javax.persistence.Entity;
|
|||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.GenerationType;
|
import javax.persistence.GenerationType;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
import com.baeldung.dynamicvalidation.ContactInfo;
|
import com.baeldung.dynamicvalidation.ContactInfo;
|
||||||
|
|
||||||
@ -15,6 +16,7 @@ public class Customer {
|
|||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
@ContactInfo
|
@ContactInfo
|
||||||
|
@NotNull
|
||||||
private String contactInfo;
|
private String contactInfo;
|
||||||
|
|
||||||
public Customer() {
|
public Customer() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user