Hibernate.orgCommunity Documentation

Hibernate EntityManager

User guide


Introducing JPA Persistence
1. Architecture
1.1. Definitions
1.2. In container environment (eg. EJB 3)
1.2.1. Container-managed entity manager
1.2.2. Application-managed entity manager
1.2.3. Persistence context scope
1.2.4. Persistence context propagation
1.3. Java SE environments
2. Setup and configuration
2.1. Setup
2.2. Configuration and bootstrapping
2.2.1. Packaging
2.2.2. Bootstrapping
2.3. Event listeners
2.4. Obtaining an EntityManager in a Java SE environment
2.5. Various
3. Working with objects
3.1. Entity states
3.2. Making objects persistent
3.3. Loading an object
3.4. Querying objects
3.4.1. Executing queries
3.5. Modifying persistent objects
3.6. Detaching a object
3.7. Modifying detached objects
3.8. Automatic state detection
3.9. Deleting managed objects
3.10. Flush the persistence context
3.10.1. In a transaction
3.10.2. Outside a transaction
3.11. Transitive persistence
3.12. Locking
3.13. Caching
3.14. Checking the state of an object
3.15. Native Hibernate API
4. Metamodel
4.1. Static metamodel
5. Transactions and Concurrency
5.1. Entity manager and transaction scopes
5.1.1. Unit of work
5.1.2. Long units of work
5.1.3. Considering object identity
5.1.4. Common concurrency control issues
5.2. Database transaction demarcation
5.2.1. Non-managed environment
5.2.2. Using JTA
5.2.3. Exception handling
5.3. EXTENDED Persistence Context
5.3.1. Container Managed Entity Manager
5.3.2. Application Managed Entity Manager
5.4. Optimistic concurrency control
5.4.1. Application version checking
5.4.2. Extended entity manager and automatic versioning
5.4.3. Detached objects and automatic versioning
6. Entity listeners and Callback methods
6.1. Definition
6.2. Callbacks and listeners inheritance
6.3. XML definition
7. Batch processing
7.1. Bulk update/delete
8. JP-QL: The Object Query Language
8.1. Case Sensitivity
8.2. The from clause
8.3. Associations and joins
8.4. The select clause
8.5. Aggregate functions
8.6. Polymorphic queries
8.7. The where clause
8.8. Expressions
8.9. The order by clause
8.10. The group by clause
8.11. Subqueries
8.12. JP-QL examples
8.13. Bulk UPDATE & DELETE Statements
8.14. Tips & Tricks
9. Criteria Queries
9.1. Typed criteria queries
9.1.1. Selecting an entity
9.1.2. Selecting a value
9.1.3. Selecting multiple values
9.1.4. Selecting a wrapper
9.2. Tuple criteria queries
9.2.1. Accessing tuple elements
9.3. FROM clause
9.3.1. Roots
9.3.2. Joins
9.3.3. Fetches
9.4. Path expressions
9.5. Using parameters
10. Native query
10.1. Expressing the resultset
10.2. Using native SQL Queries
10.3. Named queries
References