78 words

JPA 2 Annotations

JPA defines dozens of annotations that can be divided into the following groups:

Annotations for JPA aware classes:

Annotations for fields in JPA persistable classes:

Annotations for additional JPA configuration:

Annotations for JPA lifecycle event callbacks:

Java EE container annotations:

Many other JPA annotations are designated for Object Relational Mapping (ORM) JPA providers (for mapping between a relational database and an object model and for direct SQL queries):

These ORM annotations are silently ignored by ObjectDB.


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.