[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] split the <mapping-file> tags across the modules into separate xml files
|
Hi,
Depending on exactly what you are trying to do, you may be able to leverage
our composite persistence unit functionality. The idea is that a persistence
unit can be comprised of a list of other persistence units. Here is an example,
it demonstrates how have the persistence units connect to different data
sources, but there is no reason they could not connect to the same data source.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Composite
-Tom
On 11/10/2012 6:29 AM, bb wrote:
Hi
We are currenty trying to migrate our project to eclipselink from hibernate.
In hibernate we are doing the following
1. Each module has its separate cfg.xml file. This file will contain only
the <mapping> tags for all the entities in that specific module:
<hibernate-configuration>
<session-factory>
<mapping resource="some.hbm.xml">
...
</session-factory>
</hibernate-configuration>
2. Programmatically build the hibernate configuration by reading these
files.
In Eclispelink, I am trying to achieve a similar behaviour where I can split
the <mapping-file> tags across the modules into separate xml files. Can this
be done ? As the number of orm.xml files for the entire project is huge,
placing all the <mapping-file> tags in a single peristence.xml may not be a
possible.
Can someone suggest a way to do the above.
Thanks.
--
View this message in context: http://eclipse.1072660.n5.nabble.com/split-the-mapping-file-tags-across-the-modules-into-separate-xml-files-tp154978.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users