JDO Annotation

Join

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

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

Public Annotation Attributes

String column default ""
Name of the column in the join table.
Since:
JDO 2.1
Column[] columns default {}
Detail definition of the join column(s).
This is needed for more than one join column.
Since:
JDO 2.1
ForeignKeyAction deleteAction default ForeignKeyAction.UNSPECIFIED
Delete action to be applied to any ForeignKey on this join.
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 generatePrimaryKey default ""
Generate or assume a primary 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 join column is indexed.
Since:
JDO 2.1
String outer default ""
Whether to use an outer join.
Since:
JDO 2.1
String primaryKey default ""
Name for a generated primary key constraint.
Since:
JDO 2.1
String table default ""
Table to join to (used when joining to secondary tables).
Since:
JDO 2.1
String unique default ""
Whether the join column is unique.
Since:
JDO 2.1
String uniqueKey default ""
The name of the unique key constraint to generate.
Since:
JDO 2.1