diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java index 5a03895..56118fd 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java @@ -16,6 +16,7 @@ import javax.persistence.SequenceGenerator; import javax.persistence.Table; import javax.persistence.Transient; import javax.validation.constraints.Email; +import javax.validation.constraints.NotBlank; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -62,6 +63,7 @@ public class User { nullable = false, columnDefinition = "NVARCHAR(" + strMax + ")" ) + @NotBlank private String username; /* @@ -73,6 +75,7 @@ public class User { columnDefinition = "NVARCHAR(" + strMaxPasswd + ")" ) @JsonIgnore + @NotBlank private String password; @Email