From 2790128d83ea27f82a638ca97fc4d78afa90bf7f Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Fri, 16 Oct 2020 20:16:58 +0300 Subject: [PATCH] User: add more constraints Signed-off-by: Pekka Helenius --- .../src/main/java/com/fjordtek/bookstore/model/auth/User.java | 1 + 1 file changed, 1 insertion(+) 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 56118fd..511d17c 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 @@ -83,6 +83,7 @@ public class User { nullable = false, columnDefinition = "NVARCHAR(" + strMax + ")" ) + @NotBlank private String email; @OneToMany(