Skip to content

Commit

Permalink
fix(article): 연관관계 매핑 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Apr 30, 2024
1 parent 8c7c8f3 commit 4a5bf38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4a5bf38

Please sign in to comment.