From 2779921ee2f0586996045a8d29c0f21ade908211 Mon Sep 17 00:00:00 2001 From: ybchar Date: Fri, 25 Oct 2024 17:45:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20MissionRecord=20=EB=B6=88=ED=95=84?= =?UTF-8?q?=EC=9A=94=ED=95=9C=20Comment=20=EC=97=B0=EA=B4=80=EA=B4=80?= =?UTF-8?q?=EA=B3=84=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stonebed/domain/missionRecord/domain/MissionRecord.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/depromeet/stonebed/domain/missionRecord/domain/MissionRecord.java b/src/main/java/com/depromeet/stonebed/domain/missionRecord/domain/MissionRecord.java index b8b21d69..bd9be482 100644 --- a/src/main/java/com/depromeet/stonebed/domain/missionRecord/domain/MissionRecord.java +++ b/src/main/java/com/depromeet/stonebed/domain/missionRecord/domain/MissionRecord.java @@ -1,13 +1,10 @@ package com.depromeet.stonebed.domain.missionRecord.domain; -import com.depromeet.stonebed.domain.comment.domain.Comment; import com.depromeet.stonebed.domain.common.BaseTimeEntity; import com.depromeet.stonebed.domain.member.domain.Member; import com.depromeet.stonebed.domain.missionHistory.domain.MissionHistory; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.persistence.*; -import java.util.ArrayList; -import java.util.List; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; @@ -33,9 +30,6 @@ public class MissionRecord extends BaseTimeEntity { @JoinColumn(name = "member_id", nullable = false) private Member member; - @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) - private List comments = new ArrayList<>(); - @Schema(description = "미션 이미지 URL", example = "./missionRecord.jpg") @Column(name = "image_url") private String imageUrl;