Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] IPersistentType.allAttributes() not returning MappedSuperclass attributes?

Hi Karen,

Thanks for the quick response. I figured out what the problem actually was - I did not have my MappedSuperclass specified in the persistence.xml in a <class> element. Once I added that to the persistence.xml, the allAttributes() call returned attributes from both the Entity and its MappedSuperclass as I expected.

Do you know if this should be necessary? I don't have the option enabled to restrict looking for entities that are only defined in the Persistence.xml. My Entity is found fine if not listed there; but it seems the Superclass is only "discovered" if listed there.

Thanks
Tom

> 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


Back to the top