From c9935b58cdaca9356907653343237e6b780d6aa3 Mon Sep 17 00:00:00 2001 From: Ethan Date: Thu, 3 Aug 2023 15:07:56 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20RunnerPost=20=EC=99=80=20SupporterF?= =?UTF-8?q?eedback=20=EA=B3=BC=EC=9D=98=20=EA=B4=80=EA=B3=84=EB=A5=BC=20On?= =?UTF-8?q?eToOne=20=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/touch/baton/domain/feedback/SupporterFeedback.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/baton/src/main/java/touch/baton/domain/feedback/SupporterFeedback.java b/backend/baton/src/main/java/touch/baton/domain/feedback/SupporterFeedback.java index 8305c3a12..09b201005 100644 --- a/backend/baton/src/main/java/touch/baton/domain/feedback/SupporterFeedback.java +++ b/backend/baton/src/main/java/touch/baton/domain/feedback/SupporterFeedback.java @@ -9,6 +9,7 @@ import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToOne; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; @@ -51,7 +52,7 @@ public class SupporterFeedback extends BaseEntity { @JoinColumn(name = "runner_id", nullable = false, foreignKey = @ForeignKey(name = "fk_supporter_feed_back_to_runner")) private Runner runner; - @ManyToOne(fetch = LAZY) + @OneToOne(fetch = LAZY) @JoinColumn(name = "runner_post_id", nullable = false, foreignKey = @ForeignKey(name = "fk_supporter_feed_back_to_runner_post")) private RunnerPost runnerPost;