JPA Methodin javax.persistence.EntityManagerEntityManagerFactory getEntityManagerFactory() Return the entity manager factory for the entity manager. Return: EntityManagerFactory instanceThrows:IllegalStateException - if the entity manager has been closedSince:JPA 2.0