From 9ff1e84a8c83a8f6eeafb362cecae2b5a8efdd71 Mon Sep 17 00:00:00 2001 From: insanity Date: Wed, 16 Nov 2016 13:28:04 +0900 Subject: [PATCH] Collector --- src/main/java/com/loafle/bridge/collector/Collector.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {