Target
This commit is contained in:
snoop 2017-06-05 11:43:51 +09:00
parent 601ccfa411
commit 3015734837
3 changed files with 100 additions and 13 deletions

View File

@ -0,0 +1,10 @@
package com.loafle.overflow.target.dao;
import com.loafle.overflow.commons.dao.JPABaseDAO;
import com.loafle.overflow.target.model.Target;
/**
* Created by root on 17. 6. 5.
*/
public class JPATargetDao extends JPABaseDAO<Target> implements TargetDao {
}

View File

@ -0,0 +1,10 @@
package com.loafle.overflow.target.dao;
import com.loafle.overflow.commons.dao.BaseDAO;
import com.loafle.overflow.target.model.Target;
/**
* Created by root on 17. 6. 5.
*/
public interface TargetDao extends BaseDAO<Target> {
}

View File

@ -15,24 +15,91 @@ public class Target {
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Long id;
@Column(name="TEMP_KEY", unique=true, nullable=false)
private String tempKey;
@Column(name="IP", nullable=false)
private long ip;
@Column(name="PORT", nullable=false)
private long port;
@Column(name="TARGET_TYPE", nullable=false)
@Enumerated(EnumType.STRING)
private TargetType targetType;
@Column(name="VENDOR_NAME", nullable=false)
private String vendorName;
@Column(name="KINDS", nullable=false)
private String kinds;
@Column(name="VERSION", nullable=false)
private String version;
@Temporal(TemporalType.TIMESTAMP)
@Column(name="DATE", nullable=false)
private Date date;
@Column(name="CREATE_DATE", nullable=false , columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false)
private Date createDate;
@Column(name="API_KEY", unique = true, nullable=false)
private String apiKey;
@Column(name="AUTH_STATUS", nullable=false)
@Enumerated(EnumType.STRING)
private TargetType authStatus;
@Column(name="LOCAL_IP", nullable=false)
private long localIP;
@Column(name="HOST_NAME")
private String hostName;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public long getIp() {
return ip;
}
public void setIp(long ip) {
this.ip = ip;
}
public long getPort() {
return port;
}
public void setPort(long port) {
this.port = port;
}
public TargetType getTargetType() {
return targetType;
}
public void setTargetType(TargetType targetType) {
this.targetType = targetType;
}
public String getVendorName() {
return vendorName;
}
public void setVendorName(String vendorName) {
this.vendorName = vendorName;
}
public String getKinds() {
return kinds;
}
public void setKinds(String kinds) {
this.kinds = kinds;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}