diff --git a/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/entity/Capsule.java b/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/entity/Capsule.java index feab13c7b..833fc102e 100644 --- a/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/entity/Capsule.java +++ b/backend/core/src/main/java/site/timecapsulearchive/core/domain/capsule/entity/Capsule.java @@ -14,16 +14,20 @@ import jakarta.persistence.ManyToOne; import jakarta.persistence.OneToMany; import jakarta.persistence.Table; +import java.time.ZoneId; import java.time.ZonedDateTime; +import java.util.ArrayList; import java.util.List; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; import org.locationtech.jts.geom.Point; +import site.timecapsulearchive.core.domain.capsule.exception.GroupCapsuleOpenNotFoundException; import site.timecapsulearchive.core.domain.capsuleskin.entity.CapsuleSkin; import site.timecapsulearchive.core.domain.group.entity.Group; import site.timecapsulearchive.core.domain.member.entity.Member; +import site.timecapsulearchive.core.global.common.supplier.ZonedDateTimeSupplier; import site.timecapsulearchive.core.global.entity.BaseEntity; @Entity @@ -60,13 +64,13 @@ public class Capsule extends BaseEntity { private Address address; @OneToMany(mappedBy = "capsule", cascade = CascadeType.ALL, orphanRemoval = true) - private List images; + private List images = new ArrayList<>(); @OneToMany(mappedBy = "capsule", cascade = CascadeType.ALL, orphanRemoval = true) - private List