From 69a94fa2369e93fcbef8f7dde80be8ca81162dbf Mon Sep 17 00:00:00 2001 From: George Kalampokis Date: Wed, 23 Feb 2022 12:02:03 +0200 Subject: [PATCH] Make email nullable field --- .../data/src/main/java/eu/eudat/data/entities/Credential.java | 2 +- .../data/src/main/java/eu/eudat/data/entities/UserInfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Credential.java b/dmp-backend/data/src/main/java/eu/eudat/data/entities/Credential.java index 88e3dc36d..ec6784281 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Credential.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/entities/Credential.java @@ -34,7 +34,7 @@ public class Credential implements DataEntity { private Integer provider; @Column(name = "\"Public\"", nullable = false) private String publicValue; - @Column(name = "\"Email\"", nullable = false) + @Column(name = "\"Email\"") private String email; @Column(name = "\"Secret\"", nullable = false) private String secret; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserInfo.java b/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserInfo.java index ca8b5ab51..7c243b3a5 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserInfo.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserInfo.java @@ -26,7 +26,7 @@ public class UserInfo implements DataEntity { private UUID id; - @Column(name = "email", nullable = false) + @Column(name = "email") private String email = null; @Column(name = "authorization_level", nullable = false)