fixed
dh
This commit is contained in:
parent
c4a6771a83
commit
e614bb1b86
|
@ -1,5 +1,7 @@
|
|||
package com.loafle.bridge.discoveryzone;
|
||||
|
||||
import com.loafle.bridge.discoveryhost.entity.DiscoveryHost;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -23,6 +25,9 @@ public class DiscoveryZone {
|
|||
@OneToMany(mappedBy = "zone", cascade = CascadeType.ALL)
|
||||
private List<HostScanHistory> hostScanHistories;
|
||||
|
||||
@OneToMany(mappedBy = "zone", cascade = CascadeType.ALL)
|
||||
private List<DiscoveryHost> discoveryHosts;
|
||||
|
||||
public List<HostScanHistory> getHostScanHistories() {
|
||||
return hostScanHistories;
|
||||
}
|
||||
|
@ -31,6 +36,14 @@ public class DiscoveryZone {
|
|||
this.hostScanHistories = hostScanHistories;
|
||||
}
|
||||
|
||||
public List<DiscoveryHost> getDiscoveryHosts() {
|
||||
return discoveryHosts;
|
||||
}
|
||||
|
||||
public void setDiscoveryHosts(List<DiscoveryHost> discoveryHosts) {
|
||||
this.discoveryHosts = discoveryHosts;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user