From c4a6771a83c7eecaeebb0eec21fc4734ccb2f576 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 17 Nov 2016 11:00:46 +0900 Subject: [PATCH] fixed dh --- .../discoveryhistory/DiscoveryHistory.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/loafle/bridge/discoveryhistory/DiscoveryHistory.java b/src/main/java/com/loafle/bridge/discoveryhistory/DiscoveryHistory.java index ab01b1b..1aeb8c7 100644 --- a/src/main/java/com/loafle/bridge/discoveryhistory/DiscoveryHistory.java +++ b/src/main/java/com/loafle/bridge/discoveryhistory/DiscoveryHistory.java @@ -1,5 +1,7 @@ package com.loafle.bridge.discoveryhistory; +import com.loafle.bridge.discoveryzone.DiscoveryZone; + import javax.persistence.*; import java.util.Date; @@ -14,16 +16,24 @@ public class DiscoveryHistory @GeneratedValue(strategy = GenerationType.AUTO) private long id; - @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false, updatable = false) + @Column(nullable = false, updatable = false) private Date startDate; - @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false) + @Column(updatable = false) private Date endDate; @Column(nullable=false) private Boolean result; -// private null DiscoveryZone; + @Column(nullable=false) + private DiscoveryZone zone; + public DiscoveryZone getZone() { + return zone; + } + + public void setZone(DiscoveryZone zone) { + this.zone = zone; + } public long getId() { return id;