ObjectDB ObjectDB

getMetamodel() - JPA EntityManager's method

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