diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2024-08-01 13:50:52 +0100 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2024-08-01 13:52:09 +0100 |
commit | a029ccab07f2dd71286804da620c513da9fdfc0e (patch) | |
tree | 64e31fd4157120a8aee87a84c2481c825b4ac221 /models-base | |
parent | d6e6d390f583fa860e98f8e4e2b71dac2a6604aa (diff) |
Fix on persistence.xml after updating hibernate dependencies
- fix on side effects from drools-apps fix.
- hibernate does not allow class annotated with @MappedSuperClass
to have also @Table annotation.
Issue-ID: POLICY-4955
Change-Id: I1493f58cd31646842220872c239629f3a499a9f3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'models-base')
-rw-r--r-- | models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java b/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java index 395a42ce9..cf36756b6 100644 --- a/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java +++ b/models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2019-2020, 2023 Nordix Foundation. + * Copyright (C) 2019-2020, 2023-2024 Nordix Foundation. * Modifications Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2022 Bell Canada. All rights reserved. * ================================================================================ @@ -29,7 +29,6 @@ import jakarta.persistence.JoinColumn; import jakarta.persistence.JoinTable; import jakarta.persistence.ManyToMany; import jakarta.persistence.MappedSuperclass; -import jakarta.persistence.Table; import jakarta.ws.rs.core.Response; import java.io.Serial; import java.lang.reflect.ParameterizedType; @@ -66,10 +65,8 @@ import org.onap.policy.models.base.validation.annotations.VerifyKey; */ //@formatter:on @MappedSuperclass -@Table(name = "PfConceptContainer") @Data @EqualsAndHashCode(callSuper = false) - public class PfConceptContainer<C extends PfConcept, A extends PfNameVersion> extends PfConcept implements PfConceptGetter<C>, PfAuthorative<List<Map<String, A>>> { @Serial |