Metamodel getMetamodel()
Obtain an instance of the Metamodel interface which provides access to metamodel objects describing the managed types belonging to the persistence unit.
- Return:
- an instance of {@link Metamodel}
- Throws:
- IllegalStateException - if the entity manager has been closed
- Since:
- JPA 2.0