Skip to content

Commit

Permalink
refactor: About 과 Member와의 연관관계 1:1로 변경 (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang authored Jan 6, 2024
1 parent f6e7e75 commit f8737b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/mallang/blog/domain/About.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToOne;
import lombok.AccessLevel;
import lombok.Getter;
Expand All @@ -33,7 +32,7 @@ public class About extends CommonRootEntity<Long> {
@Column(nullable = false, columnDefinition = "TEXT")
private String content;

@ManyToOne(fetch = LAZY)
@OneToOne(fetch = LAZY)
@JoinColumn(name = "writer_id", nullable = false)
private Member writer;

Expand Down

0 comments on commit f8737b5

Please sign in to comment.