From 2d070eb9817c7103a46913779677513cabeadcb0 Mon Sep 17 00:00:00 2001 From: insanity Date: Fri, 18 Nov 2016 11:33:39 +0900 Subject: [PATCH] annotation --- src/main/java/com/loafle/bridge/collector/Collector.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/loafle/bridge/collector/Collector.java b/src/main/java/com/loafle/bridge/collector/Collector.java index 42dad8b..658f6a4 100644 --- a/src/main/java/com/loafle/bridge/collector/Collector.java +++ b/src/main/java/com/loafle/bridge/collector/Collector.java @@ -31,11 +31,10 @@ public class Collector { @Column(nullable = false) private String configPath; - @Temporal(TemporalType.TIMESTAMP) - @Column(nullable = false) + @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false, insertable = false, updatable = false) private Date installDate; - @Temporal(TemporalType.TIMESTAMP) + @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false, insertable = false) private Date updateDate; public Collector() {