The JPA Metamodel API enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API.
The JPA Metamodel API has a major role in defining queries using the JPA Criteria API.
ObjectDB - Fast Object Database for Java (JPA/JDO)