Package javax.jdo.annotations
Annotation Type Join
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) @Repeatable(Joins.class) public @interface JoinAnnotation for the join of a relation. Corresponds to the xml element "join".- Since:
- 2.1
- Version:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcolumnName of the column in the join table.Column[]columnsDetail definition of the join column(s).ForeignKeyActiondeleteActionDelete action to be applied to any ForeignKey on this join.Extension[]extensionsVendor extensions.java.lang.StringforeignKeyName for a generated foreign key constraint.java.lang.StringgenerateForeignKeyGenerate or assume a foreign key constraint exists on the column or columns associated with this join.java.lang.StringgeneratePrimaryKeyGenerate or assume a primary key constraint exists on the column or columns associated with this join.java.lang.StringindexThe name of the index to generate.java.lang.StringindexedWhether the join column is indexed.java.lang.StringouterWhether to use an outer join.java.lang.StringprimaryKeyName for a generated primary key constraint.java.lang.StringtableTable to join to (used when joining to secondary tables).java.lang.StringuniqueWhether the join column is unique.java.lang.StringuniqueKeyThe name of the unique key constraint to generate.
-
-
-
-
deleteAction
ForeignKeyAction deleteAction
Delete action to be applied to any ForeignKey on this join.- Returns:
- the delete action
- Default:
- javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
-
-
-
columns
Column[] columns
Detail definition of the join column(s). This is needed for more than one join column.- Returns:
- the join columns
- Default:
- {}
-
-
-
extensions
Extension[] extensions
Vendor extensions.- Returns:
- the vendor extensions
- Default:
- {}
-
-