aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>2023-02-08 09:37:48 +0000
committerGerrit Code Review <gerrit@onap.org>2023-02-08 09:37:48 +0000
commitf15329432ee82d48d7ead388ba1866ebbba8efd8 (patch)
tree3e21eb4bc9205dcd4eec37e13fa40b7dfbd01880 /models
parent4ad78088b7d1098f5529611eff15b1d61fc66a04 (diff)
parente736b6a6160d24ae1e19fddb9b07d216cd895457 (diff)
Merge "Replace Eclipselink with Hibernate"
Diffstat (limited to 'models')
-rw-r--r--models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionElement.java9
-rw-r--r--models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaNodeTemplateState.java7
2 files changed, 11 insertions, 5 deletions
diff --git a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionElement.java b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionElement.java
index 4020243bb..d0dcd797f 100644
--- a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionElement.java
+++ b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionElement.java
@@ -27,6 +27,7 @@ import java.util.Map;
import java.util.UUID;
import java.util.function.UnaryOperator;
import javax.persistence.AttributeOverride;
+import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
@@ -64,7 +65,7 @@ import org.onap.policy.models.tosca.authorative.concepts.ToscaConceptIdentifier;
@Data
@EqualsAndHashCode(callSuper = false)
public class JpaAutomationCompositionElement extends Validated
- implements PfAuthorative<AutomationCompositionElement>, Comparable<JpaAutomationCompositionElement> {
+ implements PfAuthorative<AutomationCompositionElement>, Comparable<JpaAutomationCompositionElement> {
@Id
@NotNull
@@ -77,8 +78,10 @@ public class JpaAutomationCompositionElement extends Validated
// @formatter:off
@VerifyKey
@NotNull
- @AttributeOverride(name = "name", column = @Column(name = "definition_name"))
- @AttributeOverride(name = "version", column = @Column(name = "definition_version"))
+ @AttributeOverrides({
+ @AttributeOverride(name = "name", column = @Column(name = "definition_name")),
+ @AttributeOverride(name = "version", column = @Column(name = "definition_version"))
+ })
private PfConceptKey definition;
@NotNull
diff --git a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaNodeTemplateState.java b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaNodeTemplateState.java
index 088bf2196..19d25e1b5 100644
--- a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaNodeTemplateState.java
+++ b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaNodeTemplateState.java
@@ -22,6 +22,7 @@ package org.onap.policy.clamp.models.acm.persistence.concepts;
import java.util.UUID;
import javax.persistence.AttributeOverride;
+import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@@ -59,8 +60,10 @@ public class JpaNodeTemplateState extends Validated implements PfAuthorative<Nod
@VerifyKey
@NotNull
- @AttributeOverride(name = "name", column = @Column(name = "nodeTemplate_name"))
- @AttributeOverride(name = "version", column = @Column(name = "nodeTemplate_version"))
+ @AttributeOverrides({
+ @AttributeOverride(name = "name", column = @Column(name = "nodeTemplate_name")),
+ @AttributeOverride(name = "version", column = @Column(name = "nodeTemplate_version"))
+ })
private PfConceptKey nodeTemplateId;
@Column