diff --git a/src/main/java/com/loafle/bridge/collector/Collector.java b/src/main/java/com/loafle/bridge/collector/Collector.java index fb37cfb..dd8e04a 100644 --- a/src/main/java/com/loafle/bridge/collector/Collector.java +++ b/src/main/java/com/loafle/bridge/collector/Collector.java @@ -1,5 +1,8 @@ package com.loafle.bridge.collector; +import org.hibernate.annotations.Generated; +import org.hibernate.annotations.GenerationTime; + import javax.persistence.*; import java.util.Date; @@ -32,7 +35,7 @@ public class Collector { @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false) private Date installDate; - @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") + @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false) private Date updateDate; public Collector() {