diff --git a/backend/src/main/java/com/twtw/backend/domain/group/entity/GroupMember.java b/backend/src/main/java/com/twtw/backend/domain/group/entity/GroupMember.java index dbd9db36..c0c8dbed 100644 --- a/backend/src/main/java/com/twtw/backend/domain/group/entity/GroupMember.java +++ b/backend/src/main/java/com/twtw/backend/domain/group/entity/GroupMember.java @@ -30,11 +30,11 @@ public class GroupMember implements Auditable { @Column(columnDefinition = "BINARY(16)") private UUID id = UlidCreator.getMonotonicUlid().toUuid(); - @ManyToOne + @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "group_id") private Group group; - @ManyToOne + @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "member_id") private Member member; diff --git a/backend/src/main/java/com/twtw/backend/domain/notification/entity/Notification.java b/backend/src/main/java/com/twtw/backend/domain/notification/entity/Notification.java index ff18219e..5c3fd2e0 100644 --- a/backend/src/main/java/com/twtw/backend/domain/notification/entity/Notification.java +++ b/backend/src/main/java/com/twtw/backend/domain/notification/entity/Notification.java @@ -28,7 +28,7 @@ public class Notification implements Auditable { @Id @Column(columnDefinition = "BINARY(16)") - private final UUID id = UlidCreator.getMonotonicUlid().toUuid(); + private UUID id = UlidCreator.getMonotonicUlid().toUuid(); @Column(nullable = false) private String title;