[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Properties of embedded class which extends a MappedSuperclass IGNORED!!!
|
Here is some information on creating a descriptor customizer:
http://wiki.eclipse.org/Customizing_the_EclipseLink_Application_(ELUG)#Using_the_Descriptor_Customizer_Class
You won't need to set the inheritance policy, instead create a mapping for
each property from your mapped superclass and add them do your embeddable's
descriptor.
Feel free to vote for this bug as well;
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283028
Cheers,
Guy
----- Original Message -----
From: "Mario Schwarz" <Mario.Sandro.Schwarz@xxxxxx>
To: <eclipselink-users@xxxxxxxxxxx>
Sent: Wednesday, August 12, 2009 11:14 AM
Subject: [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
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users