Skip to content

Commit

Permalink
fix: orphanRemoval 옵션 추가 #125
Browse files Browse the repository at this point in the history
  • Loading branch information
chaewss committed May 23, 2024
1 parent d1761e4 commit 33af25c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cvsgo/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class User extends BaseTimeEntity {

private LocalDate deletedDate;

@OneToMany(mappedBy = "user", cascade = CascadeType.PERSIST)
@OneToMany(mappedBy = "user", cascade = CascadeType.PERSIST, orphanRemoval = true)
private List<UserTag> userTags = new ArrayList<>();

@Builder
Expand Down

0 comments on commit 33af25c

Please sign in to comment.