dh
This commit is contained in:
snoop 2016-11-17 11:05:30 +09:00
parent c4a6771a83
commit e614bb1b86

View File

@ -1,5 +1,7 @@
package com.loafle.bridge.discoveryzone; package com.loafle.bridge.discoveryzone;
import com.loafle.bridge.discoveryhost.entity.DiscoveryHost;
import javax.persistence.*; import javax.persistence.*;
import java.util.List; import java.util.List;
@ -23,6 +25,9 @@ public class DiscoveryZone {
@OneToMany(mappedBy = "zone", cascade = CascadeType.ALL) @OneToMany(mappedBy = "zone", cascade = CascadeType.ALL)
private List<HostScanHistory> hostScanHistories; private List<HostScanHistory> hostScanHistories;
@OneToMany(mappedBy = "zone", cascade = CascadeType.ALL)
private List<DiscoveryHost> discoveryHosts;
public List<HostScanHistory> getHostScanHistories() { public List<HostScanHistory> getHostScanHistories() {
return hostScanHistories; return hostScanHistories;
} }
@ -31,6 +36,14 @@ public class DiscoveryZone {
this.hostScanHistories = hostScanHistories; this.hostScanHistories = hostScanHistories;
} }
public List<DiscoveryHost> getDiscoveryHosts() {
return discoveryHosts;
}
public void setDiscoveryHosts(List<DiscoveryHost> discoveryHosts) {
this.discoveryHosts = discoveryHosts;
}
public long getId() { public long getId() {
return id; return id;
} }