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