Package javax.jdo.annotations
Annotation Type ForeignKey
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) @Repeatable(ForeignKeys.class) public @interface ForeignKeyAnnotation for a database foreign-key. Corresponds to the xml element "foreign-key".- Since:
- 2.1
- Version:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Column[]columnsColumns that compose this foreign key.java.lang.StringdeferredWhether this foreign key is deferred (constraint is checked only at commit).ForeignKeyActiondeleteActionThe delete action of this foreign key.Extension[]extensionsVendor extensions.java.lang.String[]membersMember (field and property) names that compose this foreign key.java.lang.StringnameName of the foreign key.java.lang.StringtableTable for the foreign key.java.lang.StringuniqueWhether this foreign key is unique.ForeignKeyActionupdateActionThe update action of this foreign key.
-
-
-
-
deleteAction
ForeignKeyAction deleteAction
The delete action of this foreign key.- Returns:
- the delete action of this foreign key
- Default:
- javax.jdo.annotations.ForeignKeyAction.RESTRICT
-
-
-
updateAction
ForeignKeyAction updateAction
The update action of this foreign key.- Returns:
- the update action of this foreign key
- Default:
- javax.jdo.annotations.ForeignKeyAction.RESTRICT
-
-
-
columns
Column[] columns
Columns that compose this foreign key.- Returns:
- the columns that compose this foreign key
- Default:
- {}
-
-
-
extensions
Extension[] extensions
Vendor extensions.- Returns:
- the vendor extensions
- Default:
- {}
-
-