We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 296be3d commit 6b125cbCopy full SHA for 6b125cb
src/main/java/guru/springframework/commands/CustomerForm.java
@@ -1,7 +1,10 @@
1
package guru.springframework.commands;
2
3
+import org.hibernate.validator.constraints.Email;
4
import org.hibernate.validator.constraints.NotEmpty;
5
6
+import javax.validation.constraints.Size;
7
+
8
/**
9
* Created by jt on 12/22/15.
10
*/
@@ -12,11 +15,15 @@ public class CustomerForm {
12
15
private Integer customerVersion;
13
16
14
17
@NotEmpty
18
+ @Size(min = 2)
19
private String userName;
20
private String passwordText;
21
private String passwordTextConf;
22
private String firstName;
23
private String lastName;
24
25
+ @NotEmpty
26
+ @Email
27
private String email;
28
private String phoneNumber;
29
0 commit comments