Package javax.jdo.annotations
Annotation Type Index
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) public @interface Index
Annotation for a database index. Used for database schema generation to create indexes. Corresponds to the xml element "index".- Since:
- 2.1
- Version:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Column[]
columns
Columns that compose this index.java.lang.String[]
members
Member (field and property) names that compose this index.java.lang.String
name
Name of the indexjava.lang.String
table
Table for the index.java.lang.String
unique
Whether this index is unique
-
-
-
-
columns
Column[] columns
Columns that compose this index.- Returns:
- columns that compose this index
- Default:
- {}
-
-