diff --git a/domain/src/main/java/com/codingland/domain/quiz/entity/Quiz.java b/domain/src/main/java/com/codingland/domain/quiz/entity/Quiz.java index 1d2ba34..cc22839 100644 --- a/domain/src/main/java/com/codingland/domain/quiz/entity/Quiz.java +++ b/domain/src/main/java/com/codingland/domain/quiz/entity/Quiz.java @@ -22,10 +22,10 @@ public class Quiz { private String message; private String hint; - @OneToMany(mappedBy = "quiz") + @OneToMany(mappedBy = "quiz", cascade = CascadeType.REMOVE) private List questions; - @OneToMany(mappedBy = "quiz") + @OneToMany(mappedBy = "quiz", cascade = CascadeType.REMOVE) private List answers; @ManyToOne