This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Fu Dong Jia
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!
 
Celinio Fernandes
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?
 
Ralph Jaus
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic