diff --git a/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java b/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java index 6dade6b..021a614 100644 --- a/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java +++ b/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java @@ -34,7 +34,7 @@ public class DiscoveryZone { private List histories; @OneToMany(mappedBy = "zone", cascade = CascadeType.ALL) - private List discoveryHosts; + private List 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 getDiscoveryHosts() { - return discoveryHosts; - } - public void setDiscoveryHosts(List discoveryHosts) { - this.discoveryHosts = discoveryHosts; - } public long getId() { return id; @@ -107,6 +101,14 @@ public class DiscoveryZone { } + public List getHosts() { + return hosts; + } + + public void setHosts(List hosts) { + this.hosts = hosts; + } + public void mappingChildren(DiscoveryHistory history) { this.setDiscovery(history); List hostScanHistories = this.getHistories(); @@ -116,7 +118,7 @@ public class DiscoveryZone { } } - List hosts = this.getDiscoveryHosts(); + List hosts = this.getHosts(); if (hosts != null) { for (int i =0 ; i < hosts.size() ; ++i) { hosts.get(i).mappingChildren(this);