From 912c5e91d2927eee5e37f756baf5d36c1ca15e9e Mon Sep 17 00:00:00 2001 From: yoojinche Date: Fri, 15 Aug 2025 23:10:29 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E2=99=BB=EF=B8=8Frefractor:=20=EB=B3=80?= =?UTF-8?q?=EC=88=98=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../withtime/be/withtimebe/domain/date/entity/DateCourse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java b/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java index 0f5f8b4..96ed1ed 100644 --- a/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java +++ b/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java @@ -67,7 +67,7 @@ public class DateCourse extends BaseEntity { // 연관 관계 맵핑 메소드 public void addDatePlaceDateCourses(List datePlaceDateCourseList) { - for (DatePlaceDateCourse datePlaceDateCourse : datePlaceDateCourses) { + for (DatePlaceDateCourse datePlaceDateCourse : datePlaceDateCourseList) { datePlaceDateCourse.setDateCourse(this); } datePlaceDateCourses.addAll(datePlaceDateCourseList); From 7c4b26ce3d4044f3b5e2fe8616ab69b7cdbc1940 Mon Sep 17 00:00:00 2001 From: yoojinche Date: Sat, 16 Aug 2025 01:29:11 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E2=99=BB=EF=B8=8Frefractor:=20list=20null?= =?UTF-8?q?=20=EC=B2=98=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../withtime/be/withtimebe/domain/date/entity/DateCourse.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java b/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java index 96ed1ed..b5c2bee 100644 --- a/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java +++ b/src/main/java/org/withtime/be/withtimebe/domain/date/entity/DateCourse.java @@ -67,6 +67,7 @@ public class DateCourse extends BaseEntity { // 연관 관계 맵핑 메소드 public void addDatePlaceDateCourses(List datePlaceDateCourseList) { + if (datePlaceDateCourseList == null || datePlaceDateCourseList.isEmpty()) return; for (DatePlaceDateCourse datePlaceDateCourse : datePlaceDateCourseList) { datePlaceDateCourse.setDateCourse(this); }