ObjectDB ObjectDB

createEntityManager() - JPA EntityManagerFactory's method

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.
Returns:
entity manager instance
Throws:
IllegalStateException - if the entity manager factory has been closed
Since:
JPA 1.0