From 16a5801ca65d94806589932c6f5e704e01a97a80 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 22 Jun 2017 19:39:47 +0900 Subject: [PATCH] fixed rela --- .../com/loafle/overflow/module/email/model/EmailAuth.java | 4 ++-- .../java/com/loafle/overflow/module/probe/model/Probe.java | 2 +- .../java/com/loafle/overflow/module/target/model/Target.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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; }