diff options
Diffstat (limited to 'module/ri-base/src/main')
-rw-r--r-- | module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java | 2 | ||||
-rw-r--r-- | module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java | 20 |
2 files changed, 12 insertions, 10 deletions
diff --git a/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java b/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java index 0b65aaa..6b23cdd 100644 --- a/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java +++ b/module/ri-base/src/main/java/io/trygvis/rules/dba/Cluster.java @@ -10,4 +10,6 @@ public class Cluster { public Cluster(String name) { this.name = name; } + + protected Cluster() {} } diff --git a/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java b/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java index 3888661..a420671 100644 --- a/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java +++ b/module/ri-base/src/main/java/io/trygvis/rules/dba/Container.java @@ -1,22 +1,19 @@ package io.trygvis.rules.dba; -import com.fasterxml.jackson.annotation.JsonIdentityReference; import io.trygvis.rules.machine.Machine; import io.trygvis.rules.machine.MachineSpecification; //@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id") public class Container { - public final String id; - -// @JsonIdentityReference(alwaysAsId = true) - public final Cluster cluster; - public final String name; - public final String machineRole; - public final String image; - public final String tag; + public String id; + public Cluster cluster; + public String name; + public String machineRole; + public String image; + public String tag; private Machine machine; - public final MachineSpecification machineSpecification; + public MachineSpecification machineSpecification; public Container(Cluster cluster, String name, String machineRole, String image, String tag, MachineSpecification machineSpecification) { @@ -29,6 +26,9 @@ public class Container { this.machineSpecification = machineSpecification; } + protected Container() { + } + public Cluster getCluster() { return cluster; } |