Joined: Mon Nov 02, 2009 5:28 am Posts: 2
|
Hello again,
another question occured during messing around with hibernate. Is there a way to call a seperate xml file with all hibernate mapping tags?
My problem is that I have written a tool that creates the beans and the mapping file. That workes fine for me. But the last step is to include the following line
<mapping resource="com/something/aNewTable.hbm.xml"/>
to my hibernate.cfg.xml file.
Because I don't want to put that manually to my hibernate.cfg.xml file I thought about a way to call / include a different xml file (like import_mapping.xml) with all those
<mapping resource="com/something/aNewTable.hbm.xml"/> <mapping resource="com/something/aDifferentTable.hbm.xml"/> ....
Is that possible?
|
|