My Oracle Support Banner

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.

Symptoms

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 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]

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.