• Post Reply Bookmark Topic Watch Topic
  • New Topic

Different databases

 
Heberton B. Alves dos Santos
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know if i can have instances from different databases in one session. If yes, how do I get this? If not, does exist a way to get from a query(hql) instances from different databases? Another solution?
Thanks.
Heberton.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. You'll need a SessionFactory per DataSource.
 
bacon. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!