createEntityManager
来源:互联网 发布:sql insert into 错误 编辑:程序博客网 时间:2024/06/08 06:21
EntityManager createEntityManager(java.util.Map map)
- Create a new application-managed
EntityManager
with the specified Map of properties. This method returns a new EntityManager
instance each time it is invoked. TheisOpen
method will return true on the returned instance. - Parameters:
map
- properties for entity manager- Returns:
- entity manager instance
- Throws:
IllegalStateException
- if the entity manager factory has been closed