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)