noauth probe
This commit is contained in:
snoop 2017-06-22 18:52:28 +09:00
parent 49350f1377
commit 8fa1af06c5

View File

@ -1,8 +1,10 @@
package com.loafle.overflow.module.noauthprobe.model; 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.noauthprobe.type.AuthType;
import com.loafle.overflow.module.probe.model.TblProbe; import com.loafle.overflow.module.probe.model.Probe;
import javax.persistence.*; import javax.persistence.*;
import java.sql.Timestamp; import java.sql.Timestamp;
@ -22,8 +24,8 @@ public class NoAuthProbe {
private String tempProbeKey; private String tempProbeKey;
private Date createDate; private Date createDate;
private String apiKey; private String apiKey;
private TblDomain domain; private Domain domain;
private TblProbe probe; private Probe probe;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy= GenerationType.IDENTITY)
@ -108,21 +110,21 @@ public class NoAuthProbe {
@ManyToOne @ManyToOne
@JoinColumn(name = "DOMAIN_ID", nullable=false) @JoinColumn(name = "DOMAIN_ID", nullable=false)
public TblDomain getDomainId() { public Domain getDomainId() {
return domain; return domain;
} }
public void setDomainId(TblDomain domain) { public void setDomainId(Domain domain) {
this.domain = domain; this.domain = domain;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "PROBE_ID", nullable = true) @JoinColumn(name = "PROBE_ID", nullable = true)
public TblProbe getProbeId() { public Probe getProbeId() {
return probe; return probe;
} }
public void setProbeId(TblProbe probe) { public void setProbeId(Probe probe) {
this.probe = probe; this.probe = probe;
} }