• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When actual JDBC Connection established in Hibernate ?

 
Joshi Nirav
Greenhorn
Posts: 14
IntelliJ IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I had one question in my mind.

Can anyone tell me when an actual JDBC connection established in hibernate ?

Thanks and Regards
Nirav Joshi
 
Waswani Naresh
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session object is a wrapper over the Database connection. The general understanding is that the connection gets established when the session object is created.

But the actual connection gets established only when the begin transaction request is made.

Regards,
Naresh Waswani
 
Anantha Sharma
Ranch Hand
Posts: 43
Android Hibernate jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can set the loggin mode (if you are using log4j) to debug for org.hibernate to see when the connection is created & released.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic