Skip to content

Commit

Permalink
Fix : 회원탈퇴 시 cascade 추가 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
mmihye committed Sep 29, 2024
1 parent 100b573 commit a19e96e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class PlaceBookmark extends BaseTimeEntity {
Member member;

@ManyToOne(fetch = FetchType.LAZY)
@OnDelete(action = OnDeleteAction.CASCADE)
@JoinColumn(name = "place_id")
Place place;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class PlanBookmark extends BaseTimeEntity {

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "plan_id")
@OnDelete(action = OnDeleteAction.CASCADE)
Plan plan;

@Builder
Expand Down

0 comments on commit a19e96e

Please sign in to comment.