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 - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -