This commit is contained in:
crusader
2018-06-15 12:28:33 +09:00
parent 1afea3de2f
commit 2de921d543
2 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ public class InfraHost extends Infra {
/**
* @return the infraHostMachine
*/
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "infraHost")
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "INFRA_HOST_MACHINE_ID", nullable = true)
public InfraHostMachine getInfraHostMachine() {
return infraHostMachine;
@@ -75,7 +75,7 @@ public class InfraHost extends Infra {
/**
* @return the infraHostOS
*/
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "infraHost")
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "INFRA_HOST_OS_ID", nullable = true)
public InfraHostOS getInfraHostOS() {
return infraHostOS;