This commit is contained in:
crusader
2018-06-12 18:02:12 +09:00
parent 805ce3195a
commit 6176dd0062
5 changed files with 90 additions and 5 deletions

View File

@@ -0,0 +1,58 @@
package com.loafle.overflow.model.meta;
import java.util.Date;
import javax.persistence.*;
/**
* Created by snoop on 18. 4. 24.
*/
@Entity
@Table(name = "META_TARGET_HOST_TYPE_MAPPING", schema = "public")
public class MetaTargetHostTypeMapping {
private Long id;
private MetaTargetHostType metaTargetHostType;
private String pattern;
private Date createDate;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@ManyToOne
@JoinColumn(name = "META_TARGET_HOST_TYPE_ID", nullable = false)
public MetaTargetHostType getMetaTargetHostType() {
return metaTargetHostType;
}
public void setMetaTargetHostType(MetaTargetHostType metaTargetHostType) {
this.metaTargetHostType = metaTargetHostType;
}
@Column(name = "PATTERN", nullable = false, length = 50)
public String getPattern() {
return pattern;
}
public void setPattern(String pattern) {
this.pattern = pattern;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}

View File

@@ -17,7 +17,6 @@ public class Probe {
private Long id;
private MetaProbeStatus metaProbeStatus;
private String description;
private Date createDate;
private Domain domain;
private String probeKey;
private String encryptionKey;
@@ -28,6 +27,7 @@ public class Probe {
private Integer targetCount;
private Date connectDate;
private String connectAddress;
private Date createDate;
public Probe() {