Jakarta Persistence (JPA) Method

Metamodel getMetamodel()


Obtain an instance of the Metamodel interface which provides access to metamodel objects describing the managed types belonging to the persistence unit.
Returns:
an instance of Metamodel.
Throws:
IllegalStateException - if the entity manager has been closed.
Since:
Jakarta Persistence (JPA) 2.0