File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Entity and Persistence Context Association" Watch "Entity and Persistence Context Association" New topic

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.


"Know where to find the solution and how to use it - that's the secret of success."
I agree. Here's the link:
subject: Entity and Persistence Context Association
It's not a secret anymore!