This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Is a removed entity instance is not associated with a persistence context? 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 "Is a removed entity instance is not associated with a persistence context?" Watch "Is a removed entity instance is not associated with a persistence context?" New topic
Author

Is a removed entity instance is not associated with a persistence context?

Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
If an entity was removed,it is detached.So, can we say:A detached entiy instance id is an instance with a persistence identity that is NOT associated with a persistence context?


who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Peter Purmonen
Greenhorn

Joined: Oct 24, 2008
Posts: 9
I think this is exactly what you're looking for:
http://java.boot.by/scbcd5-guide/ch06s02.html
Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
Can anyone explain it concrete.
I can not visit that web site
Arun Kumar Gupta
Ranch Hand

Joined: Jul 16, 2008
Posts: 33
As given in MZ notes page 115,remove entity instance has a persistent identity ,is associated with a persistence context and is marked for removal from the database.

while a detached entity has persistence id that no longer associated with persistence context
Try go through that page


SCJP 1.4<br />SCWCD 1.5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is a removed entity instance is not associated with a persistence context?
 
Similar Threads
When is a Persistent Context created ?
Entity and Persistence Context Association
about Entity instance lifecycle
Difference between detached entity and new entity JPA
A Mock Aboute EntityManager