-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Include Mapping calls inside seperate file
PostPosted: Mon Nov 02, 2009 10:47 am 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.