Java - Hibernate

Java - Hibernate

Hibernate

Intro

  • a connection pool provides a way to store and reuse java.sql.Connection instances for speed and robustness
  • a hibernate Session is a wrapper around a Connection in order to allow you to save your POJOs without directly writing the SQL
  • when you call SessionFactory.openSession hibernate first takes a Connection from the connection pool. It then creates a Session around that Connection and returns it

Subpages