Combining Persistence Bundles [message #1059558] |
Mon, 20 May 2013 13:00 |
|
Hi,
right now i was reading Compendium Spec 5.0 and hoped to find a solution about combining persistence bundles.
I would like to provided entities contained in different bundles by one EMF. For now it is not possible. All the entities have to be contained in the same bundle.
I am looking forward to install new bundles providing entities in runtime mode. They should join the "referenced" persistence context. I now that this would require a "pre bytecode weaving" so that all the entities are "ready" for its use in the persistence context and no restart of persistence bundle has to be performed.
A solution might be using fragments. But they do not provide its own lifecycle.
1) Is there a way using gemini propietary API to do this?
2) Are there any intentions by OSGi to provide a way? Maybe with the new subsystem specification?
Thanks Florian
|
|
|
|
|
Re: Combining Persistence Bundles [message #1059905 is a reply to message #1059855] |
Wed, 22 May 2013 07:10 |
|
Hi Mike,
thanks. I took a deep look into the dynamic entity API last days. Seems to be an interesting approach.
So it should be possible to extend a PersistenceUnit with new entities at runtime.
I will follow your idea and do some more tests...
Best and thanks
Florian
|
|
|
Powered by
FUDForum. Page generated in 0.02977 seconds