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 914c7f3..ba2395f 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 @@ -81,8 +81,8 @@ public class Probe { this.nextPollingDate = nextPollingDate; } - @Basic - @Column(name = "DOMAIN_ID", nullable = false) + @ManyToOne + @JoinColumn(name = "DOMAIN_ID", nullable = false) public Domain getDomain() { return domain; } @@ -91,8 +91,8 @@ public class Probe { this.domain = domain; } - @Basic - @Column(name = "PROBE_KEY", nullable = false, length = 50) + + @Column(name = "PROBE_KEY", nullable = false) public String getProbeKey() { return probeKey; }