From: liamfallon Date: Wed, 30 Sep 2020 16:39:21 +0000 (+0100) Subject: Remove Entity annotation from PfConceptContainer X-Git-Tag: 2.3.2~11 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b8c397eb62b91cbcadd10448410a3487ab0dfec8;p=policy%2Fmodels.git Remove Entity annotation from PfConceptContainer The PfConceptContainer class uses incompatible JPA anotations @MappedSuperClass and @Entity are incompatible as a MappedSuperClass cannot be an entity. Eclipselink silently tolerates this incompatibility but Hibernate (used in CLAMP) throws a build error on this class. Issue-ID: POLICY-2851 Change-Id: I2fd3d9217dc00717f8f2471e4848d254e7726b11 Signed-off-by: liamfallon --- 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 b8f2ed6cb..14d6585ea 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 @@ -62,7 +62,6 @@ import org.onap.policy.models.base.PfValidationResult.ValidationResult; */ //@formatter:on @MappedSuperclass -@Entity @Table(name = "PfConceptContainer") @Data @EqualsAndHashCode(callSuper = false)