getMetamodel() - JPA EntityManagerFactory's method
Method javax.persistence.EntityManagerFactory
Metamodel getMetamodel()
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