Skip to content

Commit

Permalink
[fix] #81 memo entity에 unique 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
myhyun0002 committed Feb 5, 2023
1 parent e2d1e79 commit 5837f41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public class Memo {
private Long id;

@OneToOne(fetch= FetchType.LAZY)
@JoinColumn(name="script_id")
@JoinColumn(name="script_id",unique = true)
private Script script;

@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "interview_id")
@JoinColumn(name = "interview_id",unique = true)
private Interview interview;

private String memo;
Expand Down

0 comments on commit 5837f41

Please sign in to comment.