Class ContactPointDTO
java.lang.Object
info.ejava.examples.db.validation.contacts.dto.ContactPointDTO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Valid StreetAddressDTO
private @Size(min=7,max=40,groups=SimplePlusDefault.class) @Email(groups=DetailedOnly.class) String
private @Null(groups=Create.class,message="cannot be specified for create") String
private @NotNull String
private @Size(min=8,message="${validatedValue} must have {min} characters") @Pattern(regexp=".*[0-9]{3}[- \\.][0-9]{4}.*",message="${formatter.format(\'>>%10s<<\', validatedValue)} must contain (3 digit)-(4 digit) number") String
-
Constructor Summary
ConstructorsConstructorDescriptionContactPointDTO
(@NotNull String id, String name, String email, String phone) -
Method Summary
-
Field Details
-
id
@Null(groups=Create.class, message="cannot be specified for create") private @Null(groups=Create.class,message="cannot be specified for create") String id -
name
-
email
@Size(min=7, max=40, groups=SimplePlusDefault.class) @Email(groups=DetailedOnly.class) private @Size(min=7,max=40,groups=SimplePlusDefault.class) @Email(groups=DetailedOnly.class) String email -
phone
@Size(min=8, message="${validatedValue} must have {min} characters") @Pattern(regexp=".*[0-9]{3}[- \\.][0-9]{4}.*", message="${formatter.format(\'>>%10s<<\', validatedValue)} must contain (3 digit)-(4 digit) number") private @Size(min=8,message="${validatedValue} must have {min} characters") @Pattern(regexp=".*[0-9]{3}[- \\.][0-9]{4}.*",message="${formatter.format(\'>>%10s<<\', validatedValue)} must contain (3 digit)-(4 digit) number") String phone -
address
-
-
Constructor Details
-
ContactPointDTO
-