Difference and relationship between the hibernate session and connection pool? -


i confused hibernate session , connection pool, same thing?

hibernate orm, layer between sql database , pojos.

a connection pool provides way store , reuse java.sql.connection instances speed , robustness.

a hibernate session wrapper around connection in order allow save pojos without directly writing sql.

so hibernate session wrapper around connection. connections held in connection pool.

when call sessionfactory.opensession hibernate first takes connection supplied connection pool. creates session around connection , returns it.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -