Skip to content

Commit

Permalink
fix: MissionRecord 불필요한 Comment 연관관계 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
char-yb committed Oct 25, 2024
1 parent 4997304 commit 2779921
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<Comment> comments = new ArrayList<>();

@Schema(description = "미션 이미지 URL", example = "./missionRecord.jpg")
@Column(name = "image_url")
private String imageUrl;
Expand Down

0 comments on commit 2779921

Please sign in to comment.