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;