Using a @MappedSuperclass Class as the Superclass of an @Embeddable Class is not Supported Until EclipseLink v2.2.0
(Doc ID 1297416.1)
Last updated on APRIL 15, 2020
Applies to:Oracle GlassFish Server - Version 2.0 to 3.0.1 [Release 2.0 to 3.0]
Information in this document applies to any platform.
While deploying an application which uses a @MappedSuperclass as a superclass of an @Embeddable, the deployment fails and the following exception is logged to the GlassFish instance's server.log:
Exception Description: Predeployment of PersistenceUnit [em] failed.
Exception Description: The attribute [attribute1] was not found on the embeddable class [class org.company.test.ejb.entity.EmbeddableClass]. It is referenced in an attribute override for the embedded attribute [anEmbeddableClass] on class [class org.company.test.ejb.entity.UsingClass]
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document