Skip to content

Commit

Permalink
refactor: RunnerPost 와 SupporterFeedback 과의 관계를 OneToOne 으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
cookienc committed Aug 3, 2023
1 parent 394bd42 commit c9935b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToOne;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down Expand Up @@ -51,7 +52,7 @@ public class SupporterFeedback extends BaseEntity {
@JoinColumn(name = "runner_id", nullable = false, foreignKey = @ForeignKey(name = "fk_supporter_feed_back_to_runner"))
private Runner runner;

@ManyToOne(fetch = LAZY)
@OneToOne(fetch = LAZY)
@JoinColumn(name = "runner_post_id", nullable = false, foreignKey = @ForeignKey(name = "fk_supporter_feed_back_to_runner_post"))
private RunnerPost runnerPost;

Expand Down

0 comments on commit c9935b5

Please sign in to comment.