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) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
@ -63,7 +63,7 @@ public class Probe {
} }
@Temporal(TemporalType.TIMESTAMP) @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() { public Date getLastPollingDate() {
return lastPollingDate; return lastPollingDate;
} }
@ -73,7 +73,7 @@ public class Probe {
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "NEXT_POLLING_DATE", nullable = true) @Column(name = "NEXT_POLLING_DATE", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
public Date getNextPollingDate() { public Date getNextPollingDate() {
return nextPollingDate; return nextPollingDate;
} }