ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh

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 Index Definition

The following annotations are used to define indexes on persistent fields: The Index Definition section of the ObjectDB manual explains these annotations in details.

JDO Annotations for Mapping (ORM)

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

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 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:

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 PersistenceAware Target: Classes Annotation to specify that the class is persistence-aware. If used, this is the only JDO annotation allowed on the class ... . 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