diff --git a/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java b/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java index 5ed6bbe..73fc64b 100644 --- a/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java +++ b/src/main/java/com/loafle/bridge/discoveryzone/DiscoveryZone.java @@ -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 hostScanHistories; + @OneToMany(mappedBy = "zone", cascade = CascadeType.ALL) + private List discoveryHosts; + public List getHostScanHistories() { return hostScanHistories; } @@ -31,6 +36,14 @@ public class DiscoveryZone { this.hostScanHistories = hostScanHistories; } + public List getDiscoveryHosts() { + return discoveryHosts; + } + + public void setDiscoveryHosts(List discoveryHosts) { + this.discoveryHosts = discoveryHosts; + } + public long getId() { return id; }