ing
This commit is contained in:
parent
6dd2a4efe9
commit
6621ff79e1
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user