fixed
dh
This commit is contained in:
parent
df5a93e878
commit
c4a6771a83
|
@ -1,5 +1,7 @@
|
||||||
package com.loafle.bridge.discoveryhistory;
|
package com.loafle.bridge.discoveryhistory;
|
||||||
|
|
||||||
|
import com.loafle.bridge.discoveryzone.DiscoveryZone;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
@ -14,16 +16,24 @@ public class DiscoveryHistory
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
@Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false, updatable = false)
|
@Column(nullable = false, updatable = false)
|
||||||
private Date startDate;
|
private Date startDate;
|
||||||
@Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", updatable = false)
|
@Column(updatable = false)
|
||||||
private Date endDate;
|
private Date endDate;
|
||||||
|
|
||||||
@Column(nullable=false)
|
@Column(nullable=false)
|
||||||
private Boolean result;
|
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() {
|
public long getId() {
|
||||||
return id;
|
return id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user