Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Fu Dong Jia
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Peter Purmonen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is exactly what you're looking for:
http://java.boot.by/scbcd5-guide/ch06s02.html
 
Fu Dong Jia
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain it concrete.
I can not visit that web site
 
Arun Kumar Gupta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic