aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.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/BaseMessagePropertyEntity.java
parent9e2e2732d67ba0088b56804f7193e95b4ae46f22 (diff)
JPA: fix relations, add new fields, add basic tests
Diffstat (limited to 'src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.java')
-rw-r--r--src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.java b/src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.java
index 934cce92..90c26dbb 100644
--- a/src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.java
+++ b/src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.java
@@ -21,7 +21,7 @@ import jakarta.persistence.*;
@MappedSuperclass
public class BaseMessagePropertyEntity {
- @ManyToOne(fetch = FetchType.LAZY)
+ @ManyToOne
@JoinColumn(name = "message_id")
private MessageEntity message;
public MessageEntity getMessage() {