Skip to content

Commit

Permalink
feat: Topic의 상태 choice로 cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
melonturtle committed Mar 8, 2024
1 parent 3b10133 commit 77e27f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/life/offonoff/ab/domain/topic/Topic.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Topic extends BaseEntity {
@JoinColumn(name = "topic_content_id")
private TopicContent content;

@OneToMany(mappedBy = "topic", cascade = CascadeType.REMOVE)
@OneToMany(mappedBy = "topic", cascade = CascadeType.ALL)
private List<Choice> choices = new ArrayList<>();

@Enumerated(EnumType.STRING)
Expand Down

0 comments on commit 77e27f3

Please sign in to comment.