Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • 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
Marshal
Posts: 36616
473
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!