Package javax.jdo.annotations
Annotation Type Element
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface ElementAnnotation for the element of a collection/array relation. Corresponds to the xml element "element".- 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 element in.Column[]columnsThe column(s) for the element.ForeignKeyActiondeleteActionDelete action to apply to any foreign key for the element.java.lang.StringdependentWhether the element is dependent on the owner, and will be deleted when the owner is deleted.java.lang.StringembeddedWhether this element is embedded.Embedded[]embeddedMappingThe embedded mapping for the element.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 the member in the target class that forms a bidirectional relationship with this member.java.lang.StringserializedWhether the element is to be stored serialized (into a join table)java.lang.StringtableName of the table for the element.java.lang.Class[]typesTypes of the elements.java.lang.StringuniqueWhether a unique constraint should be generated or assumed.java.lang.StringuniqueKeyThe name of the unique key constraint to generate.ForeignKeyActionupdateActionUpdate action to apply to any foreign key for the element
-
-
-
-
embeddedMapping
Embedded[] embeddedMapping
The embedded mapping for the element.- Returns:
- the embedded mapping for the element
- Default:
- {}
-
-
-
deleteAction
ForeignKeyAction deleteAction
Delete action to apply to any foreign key for the element.- Returns:
- delete action to apply to any foreign key for the element
- Default:
- javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
-
-
-
updateAction
ForeignKeyAction updateAction
Update action to apply to any foreign key for the element- Returns:
- update action to apply to any foreign key for the element
- Default:
- javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
-
-
-
columns
Column[] columns
The column(s) for the element.- Returns:
- the column(s) for the element
- Default:
- {}
-
-
-
extensions
Extension[] extensions
Vendor extensions.- Returns:
- the vendor extensions
- Default:
- {}
-
-