Skip to content

Commit

Permalink
Merge pull request #55 from PowerSupply-ES/develop
Browse files Browse the repository at this point in the history
fix: cascade 조건 추가
  • Loading branch information
byeon22 authored Sep 16, 2024
2 parents 63731f8 + 9998ca5 commit 345cd3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MemberEntity extends BaseEntity {
private String memberPhone; // 전화번호

@Builder.Default
@OneToMany(mappedBy = "memberEntity")
@OneToMany(mappedBy = "memberEntity", cascade = CascadeType.ALL, orphanRemoval = true)
private List<AnswerEntity> answerEntities = new ArrayList<>();

@Builder.Default
Expand Down

0 comments on commit 345cd3f

Please sign in to comment.