From a19e96e9d76f6878519362ce646e876553efbd7c Mon Sep 17 00:00:00 2001 From: mmihye Date: Sun, 29 Sep 2024 22:53:29 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20=ED=9A=8C=EC=9B=90=ED=83=88=ED=87=B4?= =?UTF-8?q?=20=EC=8B=9C=20cascade=20=EC=B6=94=EA=B0=80=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Journey/Together/domain/bookbark/entity/PlaceBookmark.java | 1 + .../Journey/Together/domain/bookbark/entity/PlanBookmark.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/Journey/Together/domain/bookbark/entity/PlaceBookmark.java b/src/main/java/Journey/Together/domain/bookbark/entity/PlaceBookmark.java index ebedd47..c69247a 100644 --- a/src/main/java/Journey/Together/domain/bookbark/entity/PlaceBookmark.java +++ b/src/main/java/Journey/Together/domain/bookbark/entity/PlaceBookmark.java @@ -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; diff --git a/src/main/java/Journey/Together/domain/bookbark/entity/PlanBookmark.java b/src/main/java/Journey/Together/domain/bookbark/entity/PlanBookmark.java index 3a66dc6..d38d8f9 100644 --- a/src/main/java/Journey/Together/domain/bookbark/entity/PlanBookmark.java +++ b/src/main/java/Journey/Together/domain/bookbark/entity/PlanBookmark.java @@ -27,6 +27,7 @@ public class PlanBookmark extends BaseTimeEntity { @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "plan_id") + @OnDelete(action = OnDeleteAction.CASCADE) Plan plan; @Builder