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>
|
<groupId>com.loafle.overflow</groupId>
|
||||||
<artifactId>commons-java</artifactId>
|
<artifactId>commons-java</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0.69-SNAPSHOT</version>
|
<version>1.0.70-SNAPSHOT</version>
|
||||||
<name>com.loafle.overflow.commons-java</name>
|
<name>com.loafle.overflow.commons-java</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class InfraHost extends Infra {
|
||||||
/**
|
/**
|
||||||
* @return the infraHostMachine
|
* @return the infraHostMachine
|
||||||
*/
|
*/
|
||||||
@OneToOne
|
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "infraHost")
|
||||||
@JoinColumn(name = "INFRA_HOST_MACHINE_ID", nullable = true)
|
@JoinColumn(name = "INFRA_HOST_MACHINE_ID", nullable = true)
|
||||||
public InfraHostMachine getInfraHostMachine() {
|
public InfraHostMachine getInfraHostMachine() {
|
||||||
return infraHostMachine;
|
return infraHostMachine;
|
||||||
|
@ -68,7 +68,7 @@ public class InfraHost extends Infra {
|
||||||
/**
|
/**
|
||||||
* @return the infraHostOS
|
* @return the infraHostOS
|
||||||
*/
|
*/
|
||||||
@OneToOne
|
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "infraHost")
|
||||||
@JoinColumn(name = "INFRA_HOST_OS_ID", nullable = true)
|
@JoinColumn(name = "INFRA_HOST_OS_ID", nullable = true)
|
||||||
public InfraHostOS getInfraHostOS() {
|
public InfraHostOS getInfraHostOS() {
|
||||||
return infraHostOS;
|
return infraHostOS;
|
||||||
|
@ -84,7 +84,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, mappedBy = "infraHost")
|
||||||
@OrderColumn(name = "ADDRESS")
|
@OrderColumn(name = "ADDRESS")
|
||||||
public List<InfraHostIP> getInfraHostIPs() {
|
public List<InfraHostIP> getInfraHostIPs() {
|
||||||
return infraHostIPs;
|
return infraHostIPs;
|
||||||
|
@ -100,7 +100,7 @@ public class InfraHost extends Infra {
|
||||||
/**
|
/**
|
||||||
* @return the infraHostPorts
|
* @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")
|
@OrderColumn(name = "PORT")
|
||||||
public List<InfraHostPort> getInfraHostPorts() {
|
public List<InfraHostPort> getInfraHostPorts() {
|
||||||
return infraHostPorts;
|
return infraHostPorts;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user