ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh

JPA Annotations for Mapping (ORM)

The following JPA annotations and enums are designated for mapping a JPA object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.

JPA Annotations for Java EE

The following JPA annotations are in use to integrate JPA into a Java EE application and are managed by the Java EE container:

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

JDO Annotations for Classes

JDO supports two modes of persistable classes that can be set by the following annotations: Non persistable classes that should be enhanced (because of accessing persistent fields of other classes directly) can be marked with: The identity mode of persistence capable classes can be specified by using:

Miscellaneous JDO Annotations

This section contains miscellaneous JDO annotations and associated enum types:

JDO Annotations for Fields

The way a field of a persistable class is managed by JDO can be set by the following annotations and enum types:

JDO Annotations for Fetch Settings

The following annotations are used to define JDO fetch groups and fetch plans:

JDO Annotations

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


javax.jdo.annotations Annotation Persistent Target: Fields (including property get methods) Annotation for defining the persistence of a member. This corresponds to the xml elements "field ... : javax.jdo.annotations.NullValue.NONE Since: JDO 2.1 PersistenceModifier persistenceModifier Modifier


javax.jdo.annotations Annotation NotPersistent Target: Fields (including property get methods) Annotation to specify that the member is not persistent. If used, this is the only JDO annotation ... " and "property" elements. Since: JDO 2.1 This annotation is a marker annotation (with no elements).

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support