-->
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.  [ 2 posts ] 
Author Message
 Post subject: Any articles on mapping two enitys to two datasources
PostPosted: Wed Feb 17, 2010 7:45 am 
Newbie

Joined: Tue Oct 06, 2009 2:03 pm
Posts: 7
Two simplfy the problem in my spring/hibernate app

I have enityA I wish to map to datasourceA
and enityB I wish to map to datasourceB.

Are there any good articles or tutorials out on this problem.

Thanks for any help.


Top
 Profile  
 
 Post subject: Re: Any articles on mapping two enitys to two datasources
PostPosted: Wed Feb 17, 2010 1:16 pm 
Newbie

Joined: Tue Jun 02, 2009 4:06 am
Posts: 16
Hi,

You need to create 2 sessionFactories one for each database.

Then load those two sessionFactories programmatically the same way you do it while creating one database one sessionFactory.

I hope it answers your query.

Kartik


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.