From 4cc6cec8f8f3bdcf4feff132fe71b96d5a84b1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A0=95=EB=AF=BC?= Date: Fri, 9 Aug 2024 15:35:02 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20casacade=20=EC=B6=94=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java | 1 + .../java/com/edufocus/edufocus/report/entity/vo/ReportSet.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java b/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java index 2325ae2..6216f88 100644 --- a/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java +++ b/backend/src/main/java/com/edufocus/edufocus/qna/entity/Qna.java @@ -54,6 +54,7 @@ public class Qna { @ManyToOne @JoinColumn(name = "lecture_id") + @OnDelete(action = OnDeleteAction.CASCADE) private Lecture lecture; private boolean isMine; diff --git a/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/ReportSet.java b/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/ReportSet.java index 1fd87e1..b0a245b 100644 --- a/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/ReportSet.java +++ b/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/ReportSet.java @@ -25,7 +25,6 @@ import java.util.UUID; @AllArgsConstructor @EntityListeners(AuditingEntityListener.class) @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) -@OnDelete(action = OnDeleteAction.CASCADE) public class ReportSet { @Id @GeneratedValue(generator = "UUID")