[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [dali-dev] IPersistentType.allAttributes() not returning MappedSuperclass attributes?
|
Hi Tom,
It looks to me like you need to call IJpaProject.resynch(). This is
used to calculate defaults and things like the parentPersistentType that
are dependent on the model being fully initialized.
Karen
Tom Mutdosch wrote:
Hi guys,
I have an entity (Customer) that extends an abstract base class
(BaseClass). The base class is defined as a @MappedSuperclass and
contains an ID attribute annotated as the primary key.
When I get the Customer IPersistentType and call allAttributes() I
don't seem to be getting the attributes defined in the base class; I
only get the attributes in the Customer class itself. Stepping
through the code it looks like this is because JavaPersistentType's
parentPersistentType field is null. It doesn't appear that it is ever
set (refreshParentPersistentType() never seems to get called to
initialize it).
Should this be working as I expect, or do I need to do something else
to get the entity's superclass to be recognized? I thought that I
just needed to extend the superclass, but maybe I need to annotate the
subclass somehow too.
Thanks,
Tom
_______________________________________________
dali-dev mailing list
dali-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dali-dev