From 79a724263cc1a5b59a5b613fc952c9528fcd0e87 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 15 Jun 2018 16:10:17 +0900 Subject: [PATCH] ing --- pom.xml | 2 +- src/main/java/com/loafle/overflow/model/infra/InfraHost.java | 4 ++-- .../java/com/loafle/overflow/model/infra/InfraHostIP.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 8e9b548..6fe392e 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.loafle.overflow commons-java jar - 1.0.78-SNAPSHOT + 1.0.79-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 ab8d574..bf156a2 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraHost.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraHost.java @@ -6,7 +6,7 @@ import javax.persistence.*; import com.loafle.overflow.model.meta.MetaTargetHostType; -import org.codehaus.jackson.annotate.JsonBackReference; +import org.codehaus.jackson.annotate.JsonManagedReference; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; @@ -23,7 +23,7 @@ public class InfraHost extends Infra { private InfraHostMachine infraHostMachine; private InfraHostOS infraHostOS; - @JsonBackReference + @JsonManagedReference private List infraHostIPs; private InfraHost containerInfraHost; diff --git a/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java b/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java index f12b610..a4b45cc 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraHostIP.java @@ -4,7 +4,7 @@ import javax.persistence.*; import com.loafle.overflow.model.meta.MetaIPType; -import org.codehaus.jackson.annotate.JsonManagedReference; +import org.codehaus.jackson.annotate.JsonBackReference; import java.util.Date; @@ -15,7 +15,7 @@ import java.util.Date; @Table(name = "INFRA_HOST_IP", schema = "public") public class InfraHostIP { private Long id; - @JsonManagedReference + @JsonBackReference private InfraHost infraHost; private MetaIPType metaIPType; private String address;