• 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic