Skip to content

Commit

Permalink
email is optional, fix entity constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlermitage committed Nov 21, 2023
1 parent 72a1cb2 commit 13be8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/manon/document/user/UserEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public class UserEntity implements Serializable {
@Column(length = NICKNAME_MAX_LENGTH)
private String nickname;

/** Email, mandatory. */
/** Email. */
@Size(max = EMAIL_MAX_LENGTH, message = EMAIL_SIZE_ERRMSG)
@Column(nullable = false, length = EMAIL_MAX_LENGTH, unique = true)
@Column(length = EMAIL_MAX_LENGTH)
private String email;

@OneToMany(fetch = FetchType.LAZY, mappedBy = "user")
Expand Down

0 comments on commit 13be8d5

Please sign in to comment.