my dog learned polymorphism*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Entity and Persistence Context Association Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Entity and Persistence Context Association" Watch "Entity and Persistence Context Association" New topic
Author

Entity and Persistence Context Association

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
The entity with the states 'Removed' and 'Managed' are associated with a transaction-scoped persistence context. A new entity won't be having persistence identify
and hence it won't be associated with a persistence context, a detached entity as its name reveals, just got detached (or disassociated) from the persistence context.


What does the term 'association' means here. Please explain.

Thanks


"Know where to find the solution and how to use it - that's the secret of success."
 
Consider Paul's rocket mass heater.
 
subject: Entity and Persistence Context Association
 
Similar Threads
find and getReference methods
getTransaction() on transaction-scoped persistence context.
When is a Persistent Context created ?
Is a removed entity instance is not associated with a persistence context?
Section 3.2.1 of EJB 3.0 Persistence Specs