From cac02c16b9fef2abcf08c4a1f8a7c3e27c0e1e61 Mon Sep 17 00:00:00 2001 From: Jiyoon Kim Date: Wed, 10 Jan 2024 14:02:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B4=88=EA=B8=B0=ED=99=94=20=EB=A9=A4?= =?UTF-8?q?=EB=B2=84=20=EB=B3=80=EC=88=98=20@Builder.Default=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 --- .../com/isp/backend/domain/schedules/entity/MySchedules.java | 2 ++ .../main/java/com/isp/backend/domain/users/entity/Users.java | 1 + 2 files changed, 3 insertions(+) diff --git a/backend/src/main/java/com/isp/backend/domain/schedules/entity/MySchedules.java b/backend/src/main/java/com/isp/backend/domain/schedules/entity/MySchedules.java index 733f4394..f91a2687 100644 --- a/backend/src/main/java/com/isp/backend/domain/schedules/entity/MySchedules.java +++ b/backend/src/main/java/com/isp/backend/domain/schedules/entity/MySchedules.java @@ -29,6 +29,7 @@ public class MySchedules extends BaseEntity { @JoinColumn(name = "user_id", nullable = false) private Users users; + @Builder.Default @OneToMany(mappedBy = "mySchedules", cascade = CascadeType.ALL, orphanRemoval = true) private List travelPlaces = new ArrayList<>(); @@ -45,6 +46,7 @@ public class MySchedules extends BaseEntity { @Column(name = "total_price") private double totalPrice ; + @Builder.Default @Column(name = "activated", nullable = false) private boolean activated = true; } diff --git a/backend/src/main/java/com/isp/backend/domain/users/entity/Users.java b/backend/src/main/java/com/isp/backend/domain/users/entity/Users.java index 9223f757..2176dedb 100644 --- a/backend/src/main/java/com/isp/backend/domain/users/entity/Users.java +++ b/backend/src/main/java/com/isp/backend/domain/users/entity/Users.java @@ -35,6 +35,7 @@ public class Users extends BaseEntity { @Column(name = "login_type") private String loginType ; + @Builder.Default @Column(name = "activated", nullable = false) private boolean activated = true; }