Jump To Close Expand all Collapse all Table of contents Hibernate Entity Manager Reference Guide 1. Architecture Expand section "1. Architecture" Collapse section "1. Architecture" 1.1. Definitions 1.2. EJB container environment Expand section "1.2. EJB container environment" Collapse section "1.2. EJB container environment" 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 Expand section "2. Setup and configuration" Collapse section "2. Setup and configuration" 2.1. Setup 2.2. Configuration and bootstrapping Expand section "2.2. Configuration and bootstrapping" Collapse section "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 Expand section "3. Working with objects" Collapse section "3. Working with objects" 3.1. Entity states 3.2. Making objects persistent 3.3. Loading an object 3.4. Querying objects Expand section "3.4. Querying objects" Collapse section "3.4. Querying objects" 3.4.1. Executing queries 3.5. Modifying persistent objects 3.6. Modifying detached objects 3.7. Automatic state detection 3.8. Deleting managed objects 3.9. Flush the persistence context Expand section "3.9. Flush the persistence context" Collapse section "3.9. Flush the persistence context" 3.9.1. In a transaction 3.9.2. Outside a transaction 3.10. Transitive persistence 3.11. Locking 4. Transactions and Concurrency Expand section "4. Transactions and Concurrency" Collapse section "4. Transactions and Concurrency" 4.1. Entity manager and transaction scopes Expand section "4.1. Entity manager and transaction scopes" Collapse section "4.1. Entity manager and transaction scopes" 4.1.1. Unit of work 4.1.2. Long units of work 4.1.3. Considering object identity 4.1.4. Common concurrency control issues 4.2. Database transaction demarcation Expand section "4.2. Database transaction demarcation" Collapse section "4.2. Database transaction demarcation" 4.2.1. Non-managed environment 4.2.2. Using JTA 4.2.3. Exception handling 4.3. EXTENDED Persistence Context Expand section "4.3. EXTENDED Persistence Context" Collapse section "4.3. EXTENDED Persistence Context" 4.3.1. Container Managed Entity Manager 4.3.2. Application Managed Entity Manager 4.4. Optimistic concurrency control Expand section "4.4. Optimistic concurrency control" Collapse section "4.4. Optimistic concurrency control" 4.4.1. Application version checking 4.4.2. Extended entity manager and automatic versioning 4.4.3. Detached objects and automatic versioning 5. Entity listeners and Callback methods Expand section "5. Entity listeners and Callback methods" Collapse section "5. Entity listeners and Callback methods" 5.1. Definition 5.2. Callbacks and listeners inheritance 5.3. XML definition 6. Batch processing Expand section "6. Batch processing" Collapse section "6. Batch processing" 6.1. Bulk update/delete 7. EJB-QL: The Object Query Language Expand section "7. EJB-QL: The Object Query Language" Collapse section "7. EJB-QL: The Object Query Language" 7.1. Case Sensitivity 7.2. The from clause 7.3. Associations and joins 7.4. The select clause 7.5. Aggregate functions 7.6. Polymorphic queries 7.7. The where clause 7.8. Expressions 7.9. The order by clause 7.10. The group by clause 7.11. Subqueries 7.12. EJB-QL examples 7.13. Bulk UPDATE & DELETE Statements 7.14. Tips & Tricks 8. Native query Expand section "8. Native query" Collapse section "8. Native query" 8.1. Expressing the resultset 8.2. Using native SQL Queries 8.3. Named queries A. Revision History Legal Notice Settings Close Language: 日本語 English Language: 日本語 English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: 日本語 English Language: 日本語 English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF 7.13. Bulk UPDATE & DELETE Statements Hibernate now supports UPDATE and DELETE statements in HQL/EJB-QL. See Section 6.1, “Bulk update/delete” for details. Previous Next