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
Post a Comment