-->
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.  [ 3 posts ] 
Author Message
 Post subject: Can we change catalog name in hbm.xml file dynamically?
PostPosted: Wed Jun 23, 2010 1:25 am 
Newbie

Joined: Mon Jun 21, 2010 10:33 am
Posts: 1
Can we change catalog name in hbm.xml file dynamically?


Top
 Profile  
 
 Post subject: Re: Can we change catalog name in hbm.xml file dynamically?
PostPosted: Sat Aug 14, 2010 2:44 am 
Newbie

Joined: Sat Aug 14, 2010 12:45 am
Posts: 3
As according to me try this ,
<hibernate-configuration>
<session-factory name="MySessionFactory">
<!-- some hibernate properties here -->

<!--This below works fine-->
<mapping resource="A.hbm.xml"/>

<!--This doesn't-->
<mapping resource="/dir/B.hbm.xml"/>

</session-factory>
</hibernate-configuration>
And take care of this our classpath you must give the path of the mapping file relative to this therefore the front / should be removed.

_________________
Life is either a daring adventure or nothing.


Top
 Profile  
 
 Post subject: Re: Can we change catalog name in hbm.xml file dynamically?
PostPosted: Wed Sep 08, 2010 4:20 am 
Newbie

Joined: Wed Sep 08, 2010 3:40 am
Posts: 1
daisyallen wrote:
As according to me try this ,
<hibernate-configuration>
<session-factory name="MySessionFactory">
<!-- some hibernate properties here -->

<!--This below works fine-->
<mapping resource="A.hbm.xml"/>

<!--This doesn't-->
<mapping resource="/dir/B.hbm.xml"/>

</session-factory>
</hibernate-configuration>
And take care of this our classpath you must give the path of the mapping file relative to this therefore the front / should be removed.

Thanks you for the reply. It really useful for me.

_________________
watch free movies online


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

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.