Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
13Activity
×

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Hibernate Entity Manager

Hibernate Entity Manager

Ratings: (0)|Views: 3,342|Likes:
Published by Vijay

More info:

Published by: Vijay on Mar 24, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

10/25/2011

pdf

text

original

 
Hibernate EntityManager
User guide
Version: 3.3.0.GA
 
Table of Contents
Introducing EJB3 Persistence...........................................................................................................iv
................................................................................................................................11.1. Definitions.........................................................................................................................11.2. EJB container environment.................................................................................................11.2.1. Container-managed entity manager...........................................................................11.2.2. Application-managed entity manager........................................................................21.2.3. Persistence context scope.........................................................................................21.2.4. Persistence context propagation................................................................................21.3. Java SE environments.........................................................................................................3
..............................................................................................................42.1. Setup.................................................................................................................................42.2. Configuration and bootstrapping.........................................................................................42.2.1. Packaging...............................................................................................................42.2.2. Bootstrapping..........................................................................................................62.3. Event listeners...................................................................................................................82.4. Obtaining an EntityManager in a Java SE environment.........................................................92.5. Various..............................................................................................................................9
................................................................................................................103.1. Entity states.....................................................................................................................103.2. Making objects persistent.................................................................................................103.3. Loading an object.............................................................................................................103.4. Querying objects..............................................................................................................113.4.1. Executing queries..................................................................................................113.4.1.1. Projection...................................................................................................113.4.1.2. Scalar results..............................................................................................123.4.1.3. Bind parameters..........................................................................................123.4.1.4. Pagination..................................................................................................123.4.1.5. Externalizing named queries........................................................................133.4.1.6. Native queries............................................................................................133.4.1.7. Query hints................................................................................................133.5. Modifying persistent objects.............................................................................................143.6. Modifying detached objects..............................................................................................143.7. Automatic state detection..................................................................................................153.8. Deleting managed objects.................................................................................................163.9. Flush the persistence context.............................................................................................163.9.1. In a transaction......................................................................................................163.9.2. Outside a transaction.............................................................................................173.10. Transitive persistence.....................................................................................................173.11. Locking.........................................................................................................................18
.................................................................................................204.1. Entity manager and transaction scopes...............................................................................204.1.1. Unit of work .........................................................................................................204.1.2. Long units of work ................................................................................................214.1.3. Considering object identity....................................................................................224.1.4. Common concurrency control issues.......................................................................234.2. Database transaction demarcation......................................................................................234.2.1. Non-managed environment....................................................................................244.2.1.1. EntityTransaction.......................................................................................24Hibernate 3.3.0.GA ii
 
4.2.2. Using JTA............................................................................................................254.2.3. Exception handling................................................................................................264.3. EXTENDED Persistence Context......................................................................................264.3.1. Container Managed Entity Manager........................................................................274.3.2. Application Managed Entity Manager.....................................................................274.4. Optimistic concurrency control.........................................................................................274.4.1. Application version checking.................................................................................284.4.2. Extended entity manager and automatic versioning..................................................284.4.3. Detached objects and automatic versioning.............................................................29
......................................................................................305.1. Definition........................................................................................................................305.2. Callbacks and listeners inheritance....................................................................................315.3. XML definition................................................................................................................32
.......................................................................................................................336.1. Bulk update/delete............................................................................................................33
......................................................................................357.1. Case Sensitivity...............................................................................................................357.2. The from clause...............................................................................................................357.3. Associations and joins......................................................................................................357.4. The select clause..............................................................................................................367.5. Aggregate functions.........................................................................................................377.6. Polymorphic queries.........................................................................................................387.7. The where clause..............................................................................................................387.8. Expressions.....................................................................................................................407.9. The order by clause..........................................................................................................427.10. The group by clause.......................................................................................................427.11. Subqueries.....................................................................................................................437.12. EJB-QL examples..........................................................................................................447.13. Bulk UPDATE & DELETE Statements...........................................................................457.14. Tips & Tricks.................................................................................................................45
..............................................................................................................................478.1. Expressing the resultset....................................................................................................478.2. Using native SQL Queries................................................................................................478.3. Named queries.................................................................................................................48Hibernate EntityManagerHibernate 3.3.0.GA iii

Activity (13)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
nniram liked this
ALi liked this
sameerdear liked this
sleutenma liked this
czbillson liked this
bbagi liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->