74 words

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations:

Chapter 2 of the ObjectDB manual explains these annotations in detail.

Entity and mapped super classes can be further configured by annotations that specify cache preferences and lifecycle event listener policy (as explained in chapter 3JPA Annotations for ClassesReference (JavaDoc) of JPA 2 class annotations, including @Entity, @Embeddable, @IdClass, @Cacheable, @EntityListeners, etc.
See JavaDoc Reference Page...
):

Another JPA class annotation defines an ID class:

ID classes are useful in representing composite primary keys as explained in the Primary Key section of the ObjectDB manual.


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.