This commit is contained in:
crusader 2018-06-10 18:34:09 +09:00
parent d714b3bbb0
commit 26cd6eb889
2 changed files with 63 additions and 6 deletions

View File

@ -15,7 +15,7 @@ public class InfraHostIP {
private Long id; private Long id;
private InfraHost infraHost; private InfraHost infraHost;
private MetaIPType metaIPType; private MetaIPType metaIPType;
private String ip; private String address;
private String mac; private String mac;
private Date createDate; private Date createDate;
@ -50,13 +50,13 @@ public class InfraHostIP {
} }
@Basic @Basic
@Column(name = "IP", nullable = true) @Column(name = "ADDRESS", nullable = true)
public String getIP() { public String getAddress() {
return ip; return address;
} }
public void setIP(String ip) { public void setAddress(String address) {
this.ip = ip; this.address = address;
} }
@Basic @Basic

View File

@ -2,6 +2,7 @@ package com.loafle.overflow.model.infra;
import javax.persistence.*; import javax.persistence.*;
import com.loafle.overflow.model.meta.MetaIPType;
import com.loafle.overflow.model.meta.MetaTargetZoneType; import com.loafle.overflow.model.meta.MetaTargetZoneType;
/** /**
@ -13,6 +14,12 @@ import com.loafle.overflow.model.meta.MetaTargetZoneType;
public class InfraZone extends Infra { public class InfraZone extends Infra {
private MetaTargetZoneType metaTargetZoneType; private MetaTargetZoneType metaTargetZoneType;
private String network;
private String iface;
private MetaIPType metaIPType;
private String address;
private String mac;
@ManyToOne @ManyToOne
@JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true) @JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true)
public MetaTargetZoneType getMetaTargetZoneType() { public MetaTargetZoneType getMetaTargetZoneType() {
@ -23,4 +30,54 @@ public class InfraZone extends Infra {
this.metaTargetZoneType = metaTargetZoneType; 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;
}
} }