fixed
discoveryHosts -> hosts
This commit is contained in:
parent
a38e97d2ca
commit
9be648ddb0
|
@ -34,7 +34,7 @@ public class DiscoveryZone {
|
|||
private List<HostScanHistory> histories;
|
||||
|
||||
@OneToMany(mappedBy = "zone", cascade = CascadeType.ALL)
|
||||
private List<DiscoveryHost> discoveryHosts;
|
||||
private List<DiscoveryHost> hosts;
|
||||
|
||||
@Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", nullable = false, insertable = false, updatable = false)
|
||||
private Date createDate;
|
||||
|
@ -66,13 +66,7 @@ public class DiscoveryZone {
|
|||
this.histories = histories;
|
||||
}
|
||||
|
||||
public List<DiscoveryHost> getDiscoveryHosts() {
|
||||
return discoveryHosts;
|
||||
}
|
||||
|
||||
public void setDiscoveryHosts(List<DiscoveryHost> discoveryHosts) {
|
||||
this.discoveryHosts = discoveryHosts;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
|
@ -107,6 +101,14 @@ public class DiscoveryZone {
|
|||
}
|
||||
|
||||
|
||||
public List<DiscoveryHost> getHosts() {
|
||||
return hosts;
|
||||
}
|
||||
|
||||
public void setHosts(List<DiscoveryHost> hosts) {
|
||||
this.hosts = hosts;
|
||||
}
|
||||
|
||||
public void mappingChildren(DiscoveryHistory history) {
|
||||
this.setDiscovery(history);
|
||||
List<HostScanHistory> hostScanHistories = this.getHistories();
|
||||
|
@ -116,7 +118,7 @@ public class DiscoveryZone {
|
|||
}
|
||||
}
|
||||
|
||||
List<DiscoveryHost> hosts = this.getDiscoveryHosts();
|
||||
List<DiscoveryHost> hosts = this.getHosts();
|
||||
if (hosts != null) {
|
||||
for (int i =0 ; i < hosts.size() ; ++i) {
|
||||
hosts.get(i).mappingChildren(this);
|
||||
|
|
Loading…
Reference in New Issue
Block a user