Remove Entity annotation from PfConceptContainer 89/113389/1
authorliamfallon <liam.fallon@est.tech>
Wed, 30 Sep 2020 16:39:21 +0000 (17:39 +0100)
committerliamfallon <liam.fallon@est.tech>
Wed, 30 Sep 2020 16:39:24 +0000 (17:39 +0100)
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 <liam.fallon@est.tech>
models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java

index b8f2ed6..14d6585 100644 (file)
@@ -62,7 +62,6 @@ import org.onap.policy.models.base.PfValidationResult.ValidationResult;
  */
 //@formatter:on
 @MappedSuperclass
-@Entity
 @Table(name = "PfConceptContainer")
 @Data
 @EqualsAndHashCode(callSuper = false)