From 2730000f2742a1532147e99501e9cf4d8324f401 Mon Sep 17 00:00:00 2001 From: DongJinLee Date: Mon, 13 Nov 2023 22:36:14 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20=EC=9A=B4=EB=8F=99=EA=B3=BC=20?= =?UTF-8?q?=EC=9A=B4=EB=8F=99=EB=B6=80=EC=9C=84=EC=9D=98=20=EC=9E=98?= =?UTF-8?q?=EB=AA=BB=EB=90=9C=20=EC=97=B0=EA=B4=80=EA=B4=80=EA=B3=84?= =?UTF-8?q?=EB=A5=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ogjg/daitgym/domain/exercise/Exercise.java | 2 +- .../java/com/ogjg/daitgym/domain/exercise/ExercisePart.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ogjg/daitgym/domain/exercise/Exercise.java b/src/main/java/com/ogjg/daitgym/domain/exercise/Exercise.java index 772359bd..30b77b1d 100644 --- a/src/main/java/com/ogjg/daitgym/domain/exercise/Exercise.java +++ b/src/main/java/com/ogjg/daitgym/domain/exercise/Exercise.java @@ -16,7 +16,7 @@ public class Exercise { @GeneratedValue(strategy = IDENTITY) private Long id; - @OneToOne + @OneToOne(mappedBy = "exercise") @JoinColumn(name = "exercise_part_id") private ExercisePart exercisePart; diff --git a/src/main/java/com/ogjg/daitgym/domain/exercise/ExercisePart.java b/src/main/java/com/ogjg/daitgym/domain/exercise/ExercisePart.java index ff35b473..27af78a6 100644 --- a/src/main/java/com/ogjg/daitgym/domain/exercise/ExercisePart.java +++ b/src/main/java/com/ogjg/daitgym/domain/exercise/ExercisePart.java @@ -17,7 +17,7 @@ public class ExercisePart { @GeneratedValue(strategy = IDENTITY) private Long id; - @ManyToOne(fetch = LAZY) + @OneToOne(fetch = LAZY) @JoinColumn(name = "exercise_id") private Exercise exercise;