ing
This commit is contained in:
@@ -19,6 +19,7 @@ public class InfraHost extends Infra {
|
||||
private InfraHostMachine infraHostMachine;
|
||||
private InfraHostOS infraHostOS;
|
||||
private List<InfraHostIP> infraHostIPs;
|
||||
private List<InfraHostPort> infraHostPorts;
|
||||
|
||||
public InfraHost() {
|
||||
super();
|
||||
@@ -84,6 +85,7 @@ public class InfraHost extends Infra {
|
||||
* @return the infraHostIPs
|
||||
*/
|
||||
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@OrderColumn(name = "ADDRESS")
|
||||
public List<InfraHostIP> getInfraHostIPs() {
|
||||
return infraHostIPs;
|
||||
}
|
||||
@@ -95,4 +97,19 @@ public class InfraHost extends Infra {
|
||||
this.infraHostIPs = infraHostIPs;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the infraHostPorts
|
||||
*/
|
||||
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@OrderColumn(name = "PORT")
|
||||
public List<InfraHostPort> getInfraHostPorts() {
|
||||
return infraHostPorts;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param infraHostPorts the infraHostPorts to set
|
||||
*/
|
||||
public void setInfraHostPorts(List<InfraHostPort> infraHostPorts) {
|
||||
this.infraHostPorts = infraHostPorts;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user