Browse Source

User: add more constraints

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
2790128d83
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java

+ 1
- 0
bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java View File

@ -83,6 +83,7 @@ public class User {
nullable = false, nullable = false,
columnDefinition = "NVARCHAR(" + strMax + ")" columnDefinition = "NVARCHAR(" + strMax + ")"
) )
@NotBlank
private String email; private String email;
@OneToMany( @OneToMany(


Loading…
Cancel
Save