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;