From 26cd6eb88994aee0af041e74e3772bcfd0df3c08 Mon Sep 17 00:00:00 2001 From: crusader Date: Sun, 10 Jun 2018 18:34:09 +0900 Subject: [PATCH] ing --- .../overflow/model/infra/InfraHostIP.java | 12 ++-- .../overflow/model/infra/InfraZone.java | 57 +++++++++++++++++++ 2 files changed, 63 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java b/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java index c43491a..0dfb02e 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java @@ -15,7 +15,7 @@ public class InfraHostIP { private Long id; private InfraHost infraHost; private MetaIPType metaIPType; - private String ip; + private String address; private String mac; private Date createDate; @@ -50,13 +50,13 @@ public class InfraHostIP { } @Basic - @Column(name = "IP", nullable = true) - public String getIP() { - return ip; + @Column(name = "ADDRESS", nullable = true) + public String getAddress() { + return address; } - public void setIP(String ip) { - this.ip = ip; + public void setAddress(String address) { + this.address = address; } @Basic diff --git a/src/main/java/com/loafle/overflow/model/infra/InfraZone.java b/src/main/java/com/loafle/overflow/model/infra/InfraZone.java index a0417b1..c51280e 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraZone.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraZone.java @@ -2,6 +2,7 @@ package com.loafle.overflow.model.infra; import javax.persistence.*; +import com.loafle.overflow.model.meta.MetaIPType; import com.loafle.overflow.model.meta.MetaTargetZoneType; /** @@ -13,6 +14,12 @@ import com.loafle.overflow.model.meta.MetaTargetZoneType; public class InfraZone extends Infra { private MetaTargetZoneType metaTargetZoneType; + private String network; + private String iface; + private MetaIPType metaIPType; + private String address; + private String mac; + @ManyToOne @JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true) public MetaTargetZoneType getMetaTargetZoneType() { @@ -23,4 +30,54 @@ public class InfraZone extends Infra { this.metaTargetZoneType = metaTargetZoneType; } + + @Basic + @Column(name = "NETWORK", nullable = true) + public String getNetwork() { + return network; + } + + public void setNetwork(String network) { + this.network = network; + } + + @Basic + @Column(name = "IFACE", nullable = true) + public String getIface() { + return iface; + } + + public void setIface(String iface) { + this.iface = iface; + } + + @ManyToOne + @JoinColumn(name = "META_IP_TYPE_ID", nullable = true) + public MetaIPType getMetaIPType() { + return metaIPType; + } + + public void setMetaIPType(MetaIPType metaIPType) { + this.metaIPType = metaIPType; + } + + @Basic + @Column(name = "ADDRESS", nullable = true) + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + @Basic + @Column(name = "MAC", nullable = true) + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } }