[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Virtual entities and XMLMetadataSource
|
Hi Tom,
I'm looking for both. In my project I have a entity called Project, which is extensible and uses VirtualAccessMethods. Using this and XMLMetaDataSource I allow my user to add new attributes to the project entity. Now I want to go further and allow the user to create a SubProject entity for example. This new dynamic entity created by the user would extend entities that I ship, e.g. Project. I thought I could use DynamicEntities to achieve this. However, it seems Project would have to extend DynamicEntityImpl and implement the fetchPropertiesManager method, which I'm not sure how to do. Is this the only way to do this in eclipselink?
Hi Harpreet,
Are you looking for a dynamic entity, or just an extensible entity?
DynamicEntities must extend DynamicEntityImpl. Any entity can be extensible.
See:
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Extensibility
-Tom