From 4a5bf3878ee6c2c0fd62cc9acdc4c169048e52bc Mon Sep 17 00:00:00 2001 From: bo Date: Tue, 30 Apr 2024 10:52:00 +0900 Subject: [PATCH] =?UTF-8?q?fix(article):=20=EC=97=B0=EA=B4=80=EA=B4=80?= =?UTF-8?q?=EA=B3=84=20=EB=A7=A4=ED=95=91=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/sickgyun/server/article/domain/Article.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main-server/src/main/java/com/sickgyun/server/article/domain/Article.java b/main-server/src/main/java/com/sickgyun/server/article/domain/Article.java index fc292b9..5568bd4 100644 --- a/main-server/src/main/java/com/sickgyun/server/article/domain/Article.java +++ b/main-server/src/main/java/com/sickgyun/server/article/domain/Article.java @@ -11,7 +11,7 @@ import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; -import jakarta.persistence.OneToOne; +import jakarta.persistence.ManyToOne; import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; @@ -26,7 +26,7 @@ public class Article { private String title; private String imgUrl; private String url; - @OneToOne(fetch = FetchType.LAZY) + @ManyToOne(fetch = FetchType.EAGER) private User user; @CreatedDate private LocalDateTime createdAt;