From e614bb1b86a6e950b890372aba1eec3ada8909dd Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 17 Nov 2016 11:05:30 +0900 Subject: [PATCH] fixed dh --- .../loafle/bridge/discoveryzone/DiscoveryZone.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; }