Replace Eclipselink with Hibernate 36/133136/1
authorliamfallon <liam.fallon@est.tech>
Thu, 2 Feb 2023 14:47:15 +0000 (14:47 +0000)
committerliamfallon <liam.fallon@est.tech>
Thu, 2 Feb 2023 14:47:18 +0000 (14:47 +0000)
Issue-ID: POLICY-4533
Change-Id: Iefaacb546812ccb660f32be012a44283c90b334a
Signed-off-by: liamfallon <liam.fallon@est.tech>
models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionElement.java
models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaNodeTemplateState.java

index 4020243..d0dcd79 100644 (file)
@@ -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
index 088bf21..19d25e1 100644 (file)
@@ -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