Package javax.jdo.annotations
Annotation Type Key
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface KeyAnnotation for the key of a map relation. Corresponds to the xml element "key".- Since:
- 2.1
- Version:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcolumnName of the column to store the key in.Column[]columnsThe column(s) for the keyForeignKeyActiondeleteActionDelete action to apply to the foreign key for the key.java.lang.StringdependentWhether the key is dependent on the owner (and will be deleted when the owner is deleted).java.lang.StringembeddedWhether this key is embedded.Embedded[]embeddedMappingThe embedded mapping for the key.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.StringindexThe name of the index to generate.java.lang.StringindexedWhether the value column(s) should be indexed.java.lang.StringmappedByName of a member in the value class where this key is stored.java.lang.StringserializedWhether the key is to be stored serialized (into a single column of a join table).java.lang.StringtableName of the table for the key.java.lang.Class[]typesTypes of the keys.java.lang.StringuniqueWhether the element column(s) contents should be considered uniquejava.lang.StringuniqueKeyThe name of the unique key constraint to generate.ForeignKeyActionupdateActionUpdate action to apply to the foreign key for the key.
-
-
-
-
embeddedMapping
Embedded[] embeddedMapping
The embedded mapping for the key.- Returns:
- the embedded mapping for the key
- Default:
- {}
-
-
-
deleteAction
ForeignKeyAction deleteAction
Delete action to apply to the foreign key for the key.- Returns:
- delete action to apply to the foreign key for the key
- Default:
- javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
-
-
-
updateAction
ForeignKeyAction updateAction
Update action to apply to the foreign key for the key.- Returns:
- update action to apply to the foreign key for the key
- Default:
- javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
-
-
-
columns
Column[] columns
The column(s) for the key- Returns:
- the column(s) for the key
- Default:
- {}
-
-
-
extensions
Extension[] extensions
Vendor extensions.- Returns:
- the vendor extensions
- Default:
- {}
-
-