EntityManager createEntityManager()
Create a new application-managed
EntityManager
. This method returns a new EntityManager
instance each time it is invoked. The isOpen
method will return true on the returned instance. - Return:
- entity manager instance
- Throws:
- IllegalStateException - if the entity manager factory has been closed
- Since:
- JPA 1.0