date
This commit is contained in:
snoop 2017-06-23 14:33:04 +09:00
parent 9ef8cbdca5
commit 710518b454

View File

@ -18,8 +18,8 @@ import java.util.Date;
public class NoAuthProbe {
private long id;
private String hostName;
private Integer macAddress;
private Integer ipAddress;
private long macAddress;
private long ipAddress;
private AuthType status;
private String tempProbeKey;
private Date createDate;
@ -37,7 +37,6 @@ public class NoAuthProbe {
this.id = id;
}
@Basic
@Column(name = "HOST_NAME", nullable = true, length = 50)
public String getHostName() {
return hostName;
@ -47,27 +46,26 @@ public class NoAuthProbe {
this.hostName = hostName;
}
@Basic
@Column(name = "MAC_ADDRESS", nullable = true)
public Integer getMacAddress() {
public long getMacAddress() {
return macAddress;
}
public void setMacAddress(Integer macAddress) {
public void setMacAddress(long macAddress) {
this.macAddress = macAddress;
}
@Basic
@Column(name = "IP_ADDRESS", nullable = true)
public Integer getIpAddress() {
public long getIpAddress() {
return ipAddress;
}
public void setIpAddress(Integer ipAddress) {
public void setIpAddress(long ipAddress) {
this.ipAddress = ipAddress;
}
@Basic
@Column(name = "STATUS", nullable = false)
@Enumerated(EnumType.STRING)
public AuthType getStatus() {
@ -78,8 +76,7 @@ public class NoAuthProbe {
this.status = status;
}
@Basic
@Column(name = "TEMP_PROBE_KEY", nullable = true, length = 50)
@Column(name = "TEMP_PROBE_KEY", nullable = false, length = 50)
public String getTempProbeKey() {
return tempProbeKey;
}
@ -89,7 +86,7 @@ public class NoAuthProbe {
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() {
return createDate;
}
@ -98,7 +95,6 @@ public class NoAuthProbe {
this.createDate = createDate;
}
@Basic
@Column(name = "API_KEY", nullable = true, length = 50)
public String getApiKey() {
return apiKey;