getMetamodel() - JPA EntityManagerFactory's method

Return an instance of Metamodel interface for access to the metamodel of the persistence unit.
Returns:
Metamodel instance
Throws:
IllegalStateException - if the entity manager factory has been closed
Since:
JPA 2.0