Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
8Activity

Table Of Contents

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

Hibernate Entity Manager

Ratings:
(0)
|Views: 805|Likes:
Published by mohamed64

More info:

Published by: mohamed64 on Dec 03, 2008
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/16/2011

pdf

text

original

 
Hibernate EntityManager
User guide
Version: 3.4.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
................................................................................................................113.1. Entity states.....................................................................................................................113.2. Making objects persistent.................................................................................................113.3. Loading an object.............................................................................................................113.4. Querying objects..............................................................................................................123.4.1. Executing queries..................................................................................................123.4.1.1. Projection...................................................................................................123.4.1.2. Scalar results..............................................................................................133.4.1.3. Bind parameters..........................................................................................133.4.1.4. Pagination..................................................................................................133.4.1.5. Externalizing named queries........................................................................143.4.1.6. Native queries............................................................................................143.4.1.7. Query hints................................................................................................143.5. Modifying persistent objects.............................................................................................153.6. Modifying detached objects..............................................................................................153.7. Automatic state detection..................................................................................................163.8. Deleting managed objects.................................................................................................173.9. Flush the persistence context.............................................................................................173.9.1. In a transaction......................................................................................................173.9.2. Outside a transaction.............................................................................................183.10. Transitive persistence.....................................................................................................183.11. Locking.........................................................................................................................19
.................................................................................................214.1. Entity manager and transaction scopes...............................................................................214.1.1. Unit of work .........................................................................................................214.1.2. Long units of work ................................................................................................224.1.3. Considering object identity....................................................................................234.1.4. Common concurrency control issues.......................................................................244.2. Database transaction demarcation......................................................................................244.2.1. Non-managed environment....................................................................................254.2.1.1. EntityTransaction.......................................................................................25Hibernate 3.4.0.GA ii
 
4.2.2. Using JTA............................................................................................................264.2.3. Exception handling................................................................................................274.3. EXTENDED Persistence Context......................................................................................274.3.1. Container Managed Entity Manager........................................................................284.3.2. Application Managed Entity Manager.....................................................................284.4. Optimistic concurrency control.........................................................................................284.4.1. Application version checking.................................................................................294.4.2. Extended entity manager and automatic versioning..................................................294.4.3. Detached objects and automatic versioning.............................................................30
......................................................................................315.1. Definition........................................................................................................................315.2. Callbacks and listeners inheritance....................................................................................325.3. XML definition................................................................................................................33
.......................................................................................................................346.1. Bulk update/delete............................................................................................................34
......................................................................................367.1. Case Sensitivity...............................................................................................................367.2. The from clause...............................................................................................................367.3. Associations and joins......................................................................................................367.4. The select clause..............................................................................................................377.5. Aggregate functions.........................................................................................................387.6. Polymorphic queries.........................................................................................................397.7. The where clause..............................................................................................................397.8. Expressions.....................................................................................................................417.9. The order by clause..........................................................................................................437.10. The group by clause.......................................................................................................437.11. Subqueries.....................................................................................................................447.12. EJB-QL examples..........................................................................................................457.13. Bulk UPDATE & DELETE Statements...........................................................................467.14. Tips & Tricks.................................................................................................................46
..............................................................................................................................488.1. Expressing the resultset....................................................................................................488.2. Using native SQL Queries................................................................................................488.3. Named queries.................................................................................................................49Hibernate EntityManagerHibernate 3.4.0.GA iii

Activity (8)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
ziauldba liked this
vipinkumar.vsk liked this
gbs566 liked this
arnelsoft liked this
czbillson liked this

You're Reading a Free Preview

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