Annotation for a database foreign-key. Corresponds to the xml element "foreign-key".
-
Since:
-
JDO 2.1
Columns that compose this foreign key.
Columns that compose this foreign key.
-
Returns:
-
the columns that compose this foreign key
-
Default value:
-
{}
-
Since:
-
JDO 2.1
Whether this foreign key is deferred (constraint is checked only at commit).
Whether this foreign key is deferred (constraint is checked only at commit).
-
Returns:
-
whether this foreign key is deferred
-
Default value:
-
""
-
Since:
-
JDO 2.1
The delete action of this foreign key.
The delete action of this foreign key.
-
Returns:
-
the delete action of this foreign key
-
Default value:
-
javax.jdo.annotations.ForeignKeyAction.RESTRICT
-
Since:
-
JDO 2.1
Member (field and property) names that compose this foreign key.
Member (field and property) names that compose this foreign key.
-
Returns:
-
the member names that compose this foreign key
-
Default value:
-
{}
-
Since:
-
JDO 2.1
Name of the foreign key.
Name of the foreign key.
-
Returns:
-
the name of the foreign key
-
Default value:
-
""
-
Since:
-
JDO 2.1
Table for the foreign key.
Table for the foreign key. This is needed iff annotating a type where the foreign key is not defined on the primary table for the type.
-
Returns:
-
the table on which the foreign key is defined
-
Default value:
-
""
-
Since:
-
JDO 2.1
Whether this foreign key is unique.
Whether this foreign key is unique.
-
Returns:
-
whether this foreign key is unique
-
Default value:
-
""
-
Since:
-
JDO 2.1
The update action of this foreign key.
The update action of this foreign key.
-
Returns:
-
the update action of this foreign key
-
Default value:
-
javax.jdo.annotations.ForeignKeyAction.RESTRICT
-
Since:
-
JDO 2.1