• Post Reply Bookmark Topic Watch Topic
  • New Topic

Persistence context propagation is supported for any type of an entity manager?  RSS feed

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this state correct?if not,why?
thanks in advance!
 
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, what do you think the "different types of entity manager" are ??
 
Fu Dong Jia
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Type of entity manager:transaction-scoped OR extended!
am i correct?
 
Fu Dong Jia
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Type of EntityManager:Transaction-Scoped OR extended.
Am I correct?
 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Persistence context propagation is supported for any type of an entity manager?

No, not for application managed entity managers (see jpa spec 5.7).

Type of EntityManager:Transaction-Scoped OR extended.

Yes: If the entity manager is container managed, you can use the field "type" in @PersistenceContext (extended only applies for stateful session beans!). And application managed entity managers are always extended (see again jpa spec 5.7).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!