From 6621ff79e12eeb777f5dfda187e0e992a748ac9d Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 14 Jun 2018 20:24:17 +0900 Subject: [PATCH] ing --- pom.xml | 2 +- .../java/com/loafle/overflow/model/infra/InfraHost.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 54f6e5e..24181e5 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.loafle.overflow commons-java jar - 1.0.69-SNAPSHOT + 1.0.70-SNAPSHOT com.loafle.overflow.commons-java diff --git a/src/main/java/com/loafle/overflow/model/infra/InfraHost.java b/src/main/java/com/loafle/overflow/model/infra/InfraHost.java index a52ea1b..dbaaa49 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraHost.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraHost.java @@ -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 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 getInfraHostPorts() { return infraHostPorts;