getEntityManagerFactory() - JPA EntityManager's method

Method
javax.persistence.EntityManager
EntityManagerFactory getEntityManagerFactory()

Return the entity manager factory for the entity manager.
Returns:
EntityManagerFactory instance
Throws:
IllegalStateException - if the entity manager has been closed
Since:
JPA 2.0