112 words

JPA Metamodel API

The JPA Metamodel API, which is introduced in JPA 2.0, enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API.

The main interface of the JPA Metamodel API is:

Types (mainly classes) and attributes (persistent field and properties) in the persistent object model are represented by the following sets of interfaces and enum types:

The JPA Metamodel API may optionally be used with the JPA Criteria API. Many of the interfaces in the above sets extend the Bindable interface, which may be used in defining criteria query variables in the FROM clause:

See the JPA Metamodel API page (in the ObjectDB manual) for more details and examples.


This documentation page is derived (with some adjustments) from the open source JPA 2 RI (EclipseLink)
and is available under the terms of the Eclipse Public License, v. 1.0 and Eclipse Distribution License, v. 1.0.
Object Relational Mapping (ORM) JPA 2 providers include Hibernate, EclipseLink, TopLink, OpenJPA and DataNucleus.
Object DB is not an ORM JPA implementation but an Object Database for Java with built in JPA 2 support.