• 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
Sheriff
Posts: 36032
432
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!