This commit is contained in:
snoop 2017-06-23 11:52:51 +09:00
parent a40d16ae55
commit 432cd07c67

View File

@ -53,7 +53,7 @@ public class Probe {
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
public Date getCreateDate() {
return createDate;
}
@ -63,7 +63,7 @@ public class Probe {
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "LAST_POLLING_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
@Column(name = "LAST_POLLING_DATE", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
public Date getLastPollingDate() {
return lastPollingDate;
}
@ -73,7 +73,7 @@ public class Probe {
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "NEXT_POLLING_DATE", nullable = true)
@Column(name = "NEXT_POLLING_DATE", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
public Date getNextPollingDate() {
return nextPollingDate;
}