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 ea73591 commit 827e87a
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 827e87a

Please sign in to comment.