This commit is contained in:
crusader 2018-06-14 19:50:01 +09:00
parent 75e3fc8cbd
commit 42d6ff6313
2 changed files with 3 additions and 36 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.66-SNAPSHOT</version> <version>1.0.67-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name> <name>com.loafle.overflow.commons-java</name>
<properties> <properties>

View File

@ -20,8 +20,6 @@ public class InfraHost extends Infra {
private InfraHostOS infraHostOS; private InfraHostOS infraHostOS;
private List<InfraHostIP> infraHostIPs; private List<InfraHostIP> infraHostIPs;
private List<InfraHostPort> infraHostPorts; private List<InfraHostPort> infraHostPorts;
private List<InfraHostApplication> infraHostApplications;
private List<InfraHostDaemon> infraHostDaemons;
public InfraHost() { public InfraHost() {
super(); super();
@ -86,7 +84,7 @@ public class InfraHost extends Infra {
/** /**
* @return the infraHostIPs * @return the infraHostIPs
*/ */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
public List<InfraHostIP> getInfraHostIPs() { public List<InfraHostIP> getInfraHostIPs() {
return infraHostIPs; return infraHostIPs;
} }
@ -101,7 +99,7 @@ public class InfraHost extends Infra {
/** /**
* @return the infraHostPorts * @return the infraHostPorts
*/ */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
public List<InfraHostPort> getInfraHostPorts() { public List<InfraHostPort> getInfraHostPorts() {
return infraHostPorts; return infraHostPorts;
} }
@ -112,35 +110,4 @@ public class InfraHost extends Infra {
public void setInfraHostPorts(List<InfraHostPort> infraHostPorts) { public void setInfraHostPorts(List<InfraHostPort> infraHostPorts) {
this.infraHostPorts = infraHostPorts; this.infraHostPorts = infraHostPorts;
} }
/**
* @return the infraHostApplications
*/
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
public List<InfraHostApplication> getInfraHostApplications() {
return infraHostApplications;
}
/**
* @param infraHostApplications the infraHostApplications to set
*/
public void setInfraHostApplications(List<InfraHostApplication> infraHostApplications) {
this.infraHostApplications = infraHostApplications;
}
/**
* @return the infraHostDaemons
*/
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
public List<InfraHostDaemon> getInfraHostDaemons() {
return infraHostDaemons;
}
/**
* @param infraHostDaemons the infraHostDaemons to set
*/
public void setInfraHostDaemons(List<InfraHostDaemon> infraHostDaemons) {
this.infraHostDaemons = infraHostDaemons;
}
} }