Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Defining persistence.xml programmatically?

Hi Shaun!

Thanks for your quick reply. You wrote that i can distribute entities of the same persistence unit over different osgi bundles.
What i would like to have even more is, that each bundle has it's own fragment of the persistence.xml file. Each one should contain
only that Entity classes of the osgi bundle itself.

Is this possible? The reason behind this is, that i want to modularize my system into osgi bundles. Each bundle has its own
entities, but they are all running in the same database. And i would like to have only one emf, so that i can share the entities
among all bundles.

In the attached link you are talking about:
""Just to confirm that in pre 2.0 EclipseLink you do need all of your entities in the same bundle as your persistence.xml for weaving to work""

So will the distribution of entities only work für EclipseLink 2.0? Is there already a release date for 2.0?

Thx a lot,
Dirk

Back to the top