fixed
This commit is contained in:
parent
a40d16ae55
commit
432cd07c67
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user