javax.jdo.annotations.Unique - JDO annotation
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".
- Since:
- JDO 2.1
Columns that compose this unique constraint.
Columns that compose this unique constraint.
- Returns:
- columns that compose this unique constraint
- Default value:
- {}
- Since:
- JDO 2.1
Whether this unique constraint is deferred until commit.
Whether this unique constraint is deferred until commit.
- Returns:
- whether this unique constraint is deferred until commit
- Default value:
- ""
- Since:
- JDO 2.1
Member (field and property) names that compose this unique constraint.
Member (field and property) names that compose this unique constraint.
- Returns:
- member names that compose this unique constraint
- Default value:
- {}
- Since:
- JDO 2.1
Name of the unique constraint.
Name of the unique constraint.
- Returns:
- the name of the unique constraint
- Default value:
- ""
- Since:
- JDO 2.1
Table for the unique constraint.
Table for the unique constraint. This is needed iff annotating a type where this unique constraint is not for the primary table for the persistent class or interface.
- Returns:
- the table on which the unique constraint is defined
- Default value:
- ""
- Since:
- JDO 2.1