|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Unique
Annotation for a database unique constraint. Used for database schema generation to create unique constraints. Also used to reorder database operations when flushing changes to avoid unique constraint violations. Corresponds to the xml element "unique".
Optional Element Summary | |
---|---|
Column[] |
columns
Columns that compose this unique constraint. |
java.lang.String |
deferred
Whether this unique constraint is deferred until commit. |
java.lang.String[] |
members
Member (field and property) names that compose this unique constraint. |
java.lang.String |
name
Name of the unique constraint. |
java.lang.String |
table
Table for the unique constraint. |
public abstract java.lang.String name
public abstract java.lang.String table
public abstract java.lang.String deferred
public abstract java.lang.String[] members
public abstract Column[] columns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |