Package javax.jdo.annotations
Annotation Type Unique
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) @Repeatable(Uniques.class) public @interface UniqueAnnotation 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:
- 2.1
- Version:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Column[]columnsColumns that compose this unique constraint.java.lang.StringdeferredWhether this unique constraint is deferred until commit.Extension[]extensionsVendor extensions.java.lang.String[]membersMember (field and property) names that compose this unique constraint.java.lang.StringnameName of the unique constraint.java.lang.StringtableTable for the unique constraint.
-