|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface ForeignKey
Annotation for a database foreign-key. Corresponds to the xml element "foreign-key".
Optional Element Summary | |
---|---|
Column[] |
columns
Columns that compose this foreign key. |
String |
deferred
Whether this foreign key is deferred (constraint is checked only at commit). |
ForeignKeyAction |
deleteAction
The delete action of this foreign key. |
String[] |
members
Member (field and property) names that compose this foreign key. |
String |
name
Name of the foreign key. |
String |
table
Table for the foreign key. |
String |
unique
Whether this foreign key is unique. |
ForeignKeyAction |
updateAction
The update action of this foreign key. |
public abstract String name
public abstract String table
public abstract String deferred
public abstract String unique
public abstract ForeignKeyAction deleteAction
public abstract ForeignKeyAction updateAction
public abstract String[] members
public abstract Column[] columns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |