From 9be648ddb0a4e97339c37da095d4b98673667bb0 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 18 Nov 2016 12:15:25 +0900 Subject: [PATCH] fixed discoveryHosts -> hosts --- .../bridge/discoveryzone/DiscoveryZone.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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);