From 432cd07c676d5e80a5159c7cc7b1b88818f38253 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 23 Jun 2017 11:52:51 +0900 Subject: [PATCH] fixed --- .../java/com/loafle/overflow/module/probe/model/Probe.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }