Jakarta Persistence (JPA) Method
EntityManager createEntityManager(
Map<?,?> map
)
Create a new application-managed
EntityManager with the given Map<K,V> specifying property settings. This method returns a new EntityManager instance each time it is invoked. The EntityManager.isOpen method will return true on the returned instance.
- Parameters:
map- properties for entity manager
- Returns:
- entity manager instance.
- Throws:
- if the entity manager factory has been closed.IllegalStateException
- Since:
- Jakarta Persistence (JPA) 1.0