From 55326ba310a515810170c39059681f2e6f59308b Mon Sep 17 00:00:00 2001 From: daeun084 <030804jk@naver.com> Date: Thu, 21 Nov 2024 00:00:08 +0900 Subject: [PATCH] =?UTF-8?q?!hotfix:=20=ED=9A=8C=EC=9B=90=20=ED=83=88?= =?UTF-8?q?=ED=87=B4=20=EC=8B=9C=20chat=20delete=20code=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/corecord/dev/domain/record/domain/entity/Record.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/corecord/dev/domain/record/domain/entity/Record.java b/src/main/java/corecord/dev/domain/record/domain/entity/Record.java index 8e11fb9..8d7c53d 100644 --- a/src/main/java/corecord/dev/domain/record/domain/entity/Record.java +++ b/src/main/java/corecord/dev/domain/record/domain/entity/Record.java @@ -35,7 +35,7 @@ public class Record extends BaseEntity { @JoinColumn(name = "user_id", nullable = false) private User user; - @OneToOne(fetch = FetchType.LAZY) + @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name = "chat_room_id", nullable = true) private ChatRoom chatRoom;