From 8fa1af06c59d4b77d5fa254aeb3e2ca4b45e192c Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 22 Jun 2017 18:52:28 +0900 Subject: [PATCH] fixed noauth probe --- .../module/noauthprobe/model/NoAuthProbe.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/model/NoAuthProbe.java b/src/main/java/com/loafle/overflow/module/noauthprobe/model/NoAuthProbe.java index 4b1a608..d85c6de 100644 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/model/NoAuthProbe.java +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/model/NoAuthProbe.java @@ -1,8 +1,10 @@ package com.loafle.overflow.module.noauthprobe.model; -import com.loafle.overflow.models.TblDomain; + +import com.loafle.overflow.module.domain.Domain; import com.loafle.overflow.module.noauthprobe.type.AuthType; -import com.loafle.overflow.module.probe.model.TblProbe; +import com.loafle.overflow.module.probe.model.Probe; + import javax.persistence.*; import java.sql.Timestamp; @@ -22,8 +24,8 @@ public class NoAuthProbe { private String tempProbeKey; private Date createDate; private String apiKey; - private TblDomain domain; - private TblProbe probe; + private Domain domain; + private Probe probe; @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @@ -108,21 +110,21 @@ public class NoAuthProbe { @ManyToOne @JoinColumn(name = "DOMAIN_ID", nullable=false) - public TblDomain getDomainId() { + public Domain getDomainId() { return domain; } - public void setDomainId(TblDomain domain) { + public void setDomainId(Domain domain) { this.domain = domain; } @ManyToOne @JoinColumn(name = "PROBE_ID", nullable = true) - public TblProbe getProbeId() { + public Probe getProbeId() { return probe; } - public void setProbeId(TblProbe probe) { + public void setProbeId(Probe probe) { this.probe = probe; }