Tag Usage, Class Level (@jdo)

JDO tags used to generate jdo xml metadata. The tag names are identical to the element names in jdo.dtd.

@jdo.persistence-capable (0..1)

The jdo.persistence-capable tag provides information about the JDO persistent bean. Its presence determines if your class will be included in the generated jdo metadata.

Parameter Type Applicability Description Mandatory
identity-type text Specifies whether objects are uniquely identified by a jdo-implementation provided abstract identifier (datastore identity), accessible fields in the object (application identity), or not at all (nondurable identity). true
objectid-class text The fully-qualified class name for the application identity object id. Use only with application identity. false
requires-extent bool Specifies whether the jdo implementation must provide an extent for this class. false
persistence-capable-superclass text Fully-qualified class name of the PersistenceCapable super class, if any. false

@sql.table (0..1)

Defines the mapping to a relational database. To use if the JDO bean is to be persisted on a relational database.

Parameter Type Applicability Description Mandatory
table-name text Name of the table to map to. false

Tag Usage, Method Level (@jdo)

JDO tags used to generate jdo xml metadata. The tag names are identical to the element names in jdo.dtd.