diff options
author | Vitaly Takmazov | 2024-07-01 04:10:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-07-01 04:10:37 +0300 |
commit | 9436d4927dc5035c83620bdd1dd34600370dce56 (patch) | |
tree | 2443779dddd23288e0f71b852293d736cf5db942 /src/main/java/com/juick/data/entities/BaseMessagePropertyEntity.java | |
parent | 9e2e2732d67ba0088b56804f7193e95b4ae46f22 (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.java | 2 |
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() { |