@Target({TYPE,FIELD,METHOD})
@Retention(RUNTIME)
public @interface ForeignKey
Modifier and Type | Optional Element | Description |
---|---|---|
Column[] |
columns |
Columns that compose this foreign key.
|
java.lang.String |
deferred |
Whether this foreign key is deferred
(constraint is checked only at commit).
|
ForeignKeyAction |
deleteAction |
The delete action of this foreign key.
|
java.lang.String[] |
members |
Member (field and property) names that compose this foreign key.
|
java.lang.String |
name |
Name of the foreign key.
|
java.lang.String |
table |
Table for the foreign key.
|
java.lang.String |
unique |
Whether this foreign key is unique.
|
ForeignKeyAction |
updateAction |
The update action of this foreign key.
|
java.lang.String name
java.lang.String table
java.lang.String deferred
java.lang.String unique
ForeignKeyAction deleteAction
ForeignKeyAction updateAction
java.lang.String[] members
Column[] columns