Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate getSession(Connection con)

 
tarik el berrak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

a session factory is linked to a connection using the hibernate.cfg.xml. So I'm wondering why using get a session with a connection parameter ?
To create session on another persistent store different from what was configured in the configuration file ? or another goal i don't see ?

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a separate forum for O/R questions. I'll move this to it for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic