From 00680262a44d8ba84103cef4c0774a6938493dea 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:27:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ondelete=20=EC=84=A4=EC=A0=95?= 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 | 2 +- .../java/com/edufocus/edufocus/report/entity/vo/Report.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 15ea83a..2325ae2 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 @@ -16,7 +16,7 @@ import java.util.Date; @NoArgsConstructor @AllArgsConstructor -@OnDelete(action = OnDeleteAction.CASCADE) + public class Qna { // 연관관계 주인 diff --git a/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/Report.java b/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/Report.java index 0ac149b..6e5d89a 100644 --- a/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/Report.java +++ b/backend/src/main/java/com/edufocus/edufocus/report/entity/vo/Report.java @@ -24,7 +24,6 @@ import java.util.List; @Builder @EntityListeners(AuditingEntityListener.class) @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) -@OnDelete(action = OnDeleteAction.CASCADE) public class Report { @Id @GeneratedValue(strategy = GenerationType.IDENTITY)