This commit is contained in:
crusader 2018-06-14 20:24:17 +09:00
parent 6dd2a4efe9
commit 6621ff79e1
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -52,7 +52,7 @@ public class InfraHost extends Infra {
/**
* @return the infraHostMachine
*/
@OneToOne
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "infraHost")
@JoinColumn(name = "INFRA_HOST_MACHINE_ID", nullable = true)
public InfraHostMachine getInfraHostMachine() {
return infraHostMachine;
@ -68,7 +68,7 @@ public class InfraHost extends Infra {
/**
* @return the infraHostOS
*/
@OneToOne
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "infraHost")
@JoinColumn(name = "INFRA_HOST_OS_ID", nullable = true)
public InfraHostOS getInfraHostOS() {
return infraHostOS;
@ -84,7 +84,7 @@ public class InfraHost extends Infra {
/**
* @return the infraHostIPs
*/
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "infraHost")
@OrderColumn(name = "ADDRESS")
public List<InfraHostIP> getInfraHostIPs() {
return infraHostIPs;
@ -100,7 +100,7 @@ public class InfraHost extends Infra {
/**
* @return the infraHostPorts
*/
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true)
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "infraHost")
@OrderColumn(name = "PORT")
public List<InfraHostPort> getInfraHostPorts() {
return infraHostPorts;