• Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate getSession(Connection con)  RSS feed

 
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
Sheriff
Posts: 37253
519
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
Boost this thread!