ing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user