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() {