EntityManager « JPA « JSF Q&A





1. best practise of creating entitymanager    stackoverflow.com

I am using resource local entitymanager with JPA 1 . What is the best practice for creating EntityManager that is

  1. Create do job close entitymanager everytime.(Entitymanager not heavy weight but still boring ...

2. How does the UserTransaction and the EntityManager interact?    stackoverflow.com

This is an academic question; I have no broken code in relation to this. I just want to expand my understanding of what is happening under the hood. The code ...