Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Properties of embedded class which extends a MappedSuperclass IGNORED!!!

Hi folks,

I am having the following issue and would be grateful if anyone would try to help me:

BaseA is an abstract entity base class (model) which encapsulates properties and annotations and makes them transparent for subclasses. As inheritance strategy "SINGLE_TABLE" is used.

The concrete entity class A inherits from BaseA. 
BaseA has an embedded property x of the type X. 
X is an embeddable class with a few properties

The embeddable class X extends from a with @MappedSuperclass annotated abstract superclass BaseX (also a model).

When I deploy my ear on the application server (Glassfish v2.1) a table for BaseA is created. But all the properties of the embedded property x are ignored and no corresponding fields in the table are created.

Can someone explain me why that is the case and suggest me a way to resolve that issue? I couldn't find anything useful regarding @Embedded in combination with @MappedSuperclass

I've read that there is a way to map a between Embeddable classes with the using a DescriptorCustomizer and InheritancePolicy and would like to try that solution also. Unfortunately I neither could find an example which makes clear to which class of the inheritance hierarchy a Customizer has to be annotated , nor what has to be done in the customize() method.

Thanks in advance for your help and effort
Mario

-- 
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02


Back to the top