O'Reilly logo

Spring Persistence with Hibernate by Ahmad Seddighi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Persistence with Hibernate

Hibernate's persistence service is exposed through different interfaces, including Session, Query, Criteria, and Transaction. Among these, the Session interface has a crucial role, since any Hibernate interaction involves at least a Session object.

Session objects perform basic persistence operations. These include storing a newly instantiated object and loading, updating, and deleting an already persisted object. Session objects provide a transaction handler to perform a set of persistence operations as a unit of work. Additionally, a Session object provides a simple cache for the objects loaded, stored, or updated through it.

The Session API is generally used for the following purposes:

  • Performing basic CRUD operations: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required