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 NOVEMBER 05, 2016

In this Document


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:

javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [em] failed.
Exception Description: The attribute [attribute1] was not found on the embeddable class [class]. It is referenced in an attribute override for the embedded attribute [anEmbeddableClass] on class [class]


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms