JDO Annotation

Element

Target: ElementType.FIELD, ElementType.METHOD
Implemented Interfaces:
Annotation

Annotation for the element of a collection/array relation. Corresponds to the xml element "element".
Since:
JDO 2.1

Public Annotation Attributes

String column default ""
Name of the column to store the element in.
Since:
JDO 2.1
Column[] columns default {}
The column(s) for the element.
Since:
JDO 2.1
ForeignKeyAction deleteAction default ForeignKeyAction.UNSPECIFIED
Delete action to apply to any foreign key for the element.
Since:
JDO 2.1
String dependent default ""
Whether the element is dependent on the owner, and will be deleted when the owner is deleted.
Since:
JDO 2.1
String embedded default ""
Whether this element is embedded.
Since:
JDO 2.1
The embedded mapping for the element.
Since:
JDO 2.1
Extension[] extensions default {}
Vendor extensions.
Since:
JDO 2.1
String foreignKey default ""
Name for a generated foreign key constraint.
Since:
JDO 2.1
String generateForeignKey default ""
Generate or assume a foreign key constraint exists on the column or columns associated with this join.
Specify "true" or "false".
Since:
JDO 2.1
String index default ""
The name of the index to generate.
Since:
JDO 2.1
String indexed default ""
Whether the value column(s) should be indexed.
Since:
JDO 2.1
String mappedBy default ""
Name of the member in the target class that forms a bidirectional relationship with this member.
Since:
JDO 2.1
String serialized default ""
Whether the element is to be stored serialized (into a join table)
Since:
JDO 2.1
String table default ""
Name of the table for the element.
Since:
JDO 2.1
Class[] types default {}
Types of the elements.
This can be determined if using JDK1.5 generics but is required otherwise. Multiple types can be specified if the implementation supports multiple types.
Since:
JDO 2.1
String unique default ""
Whether a unique constraint should be generated or assumed.
Since:
JDO 2.1
String uniqueKey default ""
The name of the unique key constraint to generate.
Since:
JDO 2.1
ForeignKeyAction updateAction default ForeignKeyAction.UNSPECIFIED
Update action to apply to any foreign key for the element
Since:
JDO 2.1