diff --git a/pom.xml b/pom.xml index 617c978..1bcd9dd 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.loafle.overflow commons-java jar - 1.0.56-SNAPSHOT + 1.0.57-SNAPSHOT com.loafle.overflow.commons-java diff --git a/src/main/java/com/loafle/overflow/model/infra/Infra.java b/src/main/java/com/loafle/overflow/model/infra/Infra.java index a441acc..9ca27ca 100644 --- a/src/main/java/com/loafle/overflow/model/infra/Infra.java +++ b/src/main/java/com/loafle/overflow/model/infra/Infra.java @@ -18,6 +18,14 @@ public abstract class Infra { private Probe probe; private Date createDate; + protected Infra() { + + } + + protected Infra(Long id) { + this.id = id; + } + @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long getId() { 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 9d523f7..109c01c 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraHost.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraHost.java @@ -23,6 +23,14 @@ public class InfraHost extends Infra { private List infraHostApplications; private List infraHostDaemons; + public InfraHost() { + super(); + } + + public InfraHost(Long id) { + super(id); + } + @ManyToOne @JoinColumn(name = "INFRA_ZONE_ID", nullable = true) public InfraZone getInfraZone() { diff --git a/src/main/java/com/loafle/overflow/model/infra/InfraService.java b/src/main/java/com/loafle/overflow/model/infra/InfraService.java index 3148ca6..7b715eb 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraService.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraService.java @@ -18,6 +18,13 @@ public class InfraService extends Infra { private InfraHostPort infraHostPort; private MetaCryptoType metaCryptoType; + public InfraService() { + super(); + } + + public InfraService(Long id) { + super(id); + } @ManyToOne @JoinColumn(name = "META_TARGET_SERVICE_TYPE_ID", nullable = true) diff --git a/src/main/java/com/loafle/overflow/model/infra/InfraZone.java b/src/main/java/com/loafle/overflow/model/infra/InfraZone.java index 5df32c4..f51c5ae 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraZone.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraZone.java @@ -20,6 +20,14 @@ public class InfraZone extends Infra { private String address; private String mac; + public InfraZone() { + super(); + } + + public InfraZone(Long id) { + super(id); + } + @ManyToOne @JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true) public MetaTargetZoneType getMetaTargetZoneType() {