aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/data/entities/EmailEntity.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-07-01 04:10:37 +0300
committerGravatar Vitaly Takmazov2024-07-01 04:10:37 +0300
commit9436d4927dc5035c83620bdd1dd34600370dce56 (patch)
tree2443779dddd23288e0f71b852293d736cf5db942 /src/main/java/com/juick/data/entities/EmailEntity.java
parent9e2e2732d67ba0088b56804f7193e95b4ae46f22 (diff)
JPA: fix relations, add new fields, add basic tests
Diffstat (limited to 'src/main/java/com/juick/data/entities/EmailEntity.java')
-rw-r--r--src/main/java/com/juick/data/entities/EmailEntity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/data/entities/EmailEntity.java b/src/main/java/com/juick/data/entities/EmailEntity.java
index 4e71adc5..e13ca772 100644
--- a/src/main/java/com/juick/data/entities/EmailEntity.java
+++ b/src/main/java/com/juick/data/entities/EmailEntity.java
@@ -24,7 +24,7 @@ import jakarta.persistence.*;
public class EmailEntity extends BaseUserPropertyEntity {
@Id
@Column(name = "email")
- @GeneratedValue(strategy = GenerationType.AUTO)
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
private String email;
public String getEmail() {