diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/Role.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/Role.java index d45c4ee..c80c67a 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/Role.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/Role.java @@ -15,6 +15,7 @@ import javax.persistence.OneToMany; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import javax.persistence.Transient; +import javax.validation.constraints.NotBlank; /** * This class implements Role entity which forms @@ -49,6 +50,7 @@ public class Role { nullable = false, columnDefinition = "VARCHAR(20)" ) + @NotBlank private String name; @OneToMany(