dh
This commit is contained in:
snoop 2016-11-17 11:00:46 +09:00
parent df5a93e878
commit c4a6771a83

View File

@ -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;