Metamodel interface for access to the metamodel of the persistence unit.">
Jakarta Persistence (JPA) Method

Metamodel getMetamodel()


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