• Post Reply Bookmark Topic Watch Topic
  • New Topic

PersistenceContect and EntityManager  RSS feed

 
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between these two? I"m in a great confusion!

Man we need a Head First EJB 3.
 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What is the difference between these two?

Do you need it for SCBCD ? In this case I would suggest reading the corresponding part in PRO EJB 3 or in the ejb 3.0 spec (persistence pdf), because the topic is really too complicated to be described in detail here. And a brief explanation like "a persistence context is some sort of a cache for entities" would probably not suffice for SCBCD.
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JPA Spec 5.1


A persistence context is a set of managed entity instances in which for any persistent entity identity there is a unique entity instance. Within the persistence context, the entity instances and their lifecycle are managed by the entity manager.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!