This commit is contained in:
crusader 2018-06-14 20:12:00 +09:00
parent 05b7322b61
commit 6dd2a4efe9
2 changed files with 18 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<groupId>com.loafle.overflow</groupId> <groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId> <artifactId>commons-java</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.0.68-SNAPSHOT</version> <version>1.0.69-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name> <name>com.loafle.overflow.commons-java</name>
<properties> <properties>

View File

@ -19,6 +19,7 @@ public class InfraHost extends Infra {
private InfraHostMachine infraHostMachine; private InfraHostMachine infraHostMachine;
private InfraHostOS infraHostOS; private InfraHostOS infraHostOS;
private List<InfraHostIP> infraHostIPs; private List<InfraHostIP> infraHostIPs;
private List<InfraHostPort> infraHostPorts;
public InfraHost() { public InfraHost() {
super(); super();
@ -84,6 +85,7 @@ public class InfraHost extends Infra {
* @return the infraHostIPs * @return the infraHostIPs
*/ */
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true) @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
@OrderColumn(name = "ADDRESS")
public List<InfraHostIP> getInfraHostIPs() { public List<InfraHostIP> getInfraHostIPs() {
return infraHostIPs; return infraHostIPs;
} }
@ -95,4 +97,19 @@ public class InfraHost extends Infra {
this.infraHostIPs = infraHostIPs; 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;
}
} }