diff --git a/src/main/java/com/loafle/overflow/module/probe/model/Probe.java b/src/main/java/com/loafle/overflow/module/probe/model/Probe.java index fddc12e..550391e 100644 --- a/src/main/java/com/loafle/overflow/module/probe/model/Probe.java +++ b/src/main/java/com/loafle/overflow/module/probe/model/Probe.java @@ -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; }