diff --git a/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java b/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java index cfdb0c6..f704811 100644 --- a/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java +++ b/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java @@ -57,8 +57,8 @@ public class EmailAuth { this.authConfirmDate = authConfirmDate; } - @Basic - @Column(name = "MEMBER_ID", nullable = false) + @ManyToOne + @JoinColumn(name = "MEMBER_ID", nullable = false) public Member getMember() { return member; } diff --git a/src/main/java/com/loafle/overflow/module/probe/model/Probe.java b/src/main/java/com/loafle/overflow/module/probe/model/Probe.java index ba2395f..4cfc972 100644 --- a/src/main/java/com/loafle/overflow/module/probe/model/Probe.java +++ b/src/main/java/com/loafle/overflow/module/probe/model/Probe.java @@ -87,7 +87,7 @@ public class Probe { return domain; } - public void setDomainId(Domain domainId) { + public void setDomain(Domain domain) { this.domain = domain; } diff --git a/src/main/java/com/loafle/overflow/module/target/model/Target.java b/src/main/java/com/loafle/overflow/module/target/model/Target.java index 362baed..6582b76 100644 --- a/src/main/java/com/loafle/overflow/module/target/model/Target.java +++ b/src/main/java/com/loafle/overflow/module/target/model/Target.java @@ -38,8 +38,8 @@ public class Target { this.createDate = createDate; } - @Basic - @Column(name = "PROBE_ID", nullable = false) + @ManyToOne + @JoinColumn(name = "PROBE_ID", nullable = false) public Probe getProbe() { return probe; }