ing
This commit is contained in:
parent
d714b3bbb0
commit
26cd6eb889
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user