Skip to content

Commit 22e6d9c

Browse files
committed
[fix] chatmessages를 builder.default로 지정
1 parent cd39a0e commit 22e6d9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/gachigage/chat/domain/ChatRoom.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class ChatRoom {
5252
@JoinColumn(name = "product_id")
5353
private Product product;
5454

55+
@Builder.Default
5556
@OneToMany(mappedBy = "chatRoom", cascade = CascadeType.REMOVE, orphanRemoval = true)
5657
private List<ChatMessage> messages = new ArrayList<>();
5758

0 commit comments

Comments
 (0)