October 2006
Intermediate to advanced
880 pages
22h 11m
English
Any transparent persistence tool includes a persistence manager API. This persistence manager usually provides services for the following:
Basic CRUD (create, retrieve, update, delete) operations
Query execution
Control of transactions
Management of the persistence context
The persistence manager may be exposed by several different interfaces. In the case of Hibernate, these are Session, Query, Criteria, and Transaction. Under the covers, the implementations of these interfaces are coupled tightly together.
In Java Persistence, the main interface you interact with is the EntityManager; it has the same role as the Hibernate Session. Other Java Persistence interfaces are Query and EntityTransaction (you can probably ...