Index
- Implemented Interfaces:
Annotation
Used in schema generation to specify creation of an index.
The syntax of the columnList element is given by the following simple BNF:
column_list ::= index_column [, index_column] index_column ::= column_name [ASC | DESC]
If neither ASC nor DESC is not specified, ASC, that is, ascending order, is assumed.
Note that it is not necessary to specify an index for a primary key, as the primary key has a unique constraint with an index created automatically.
- Since:
- JPA 2.1
Public Annotation Attributes
String columnList default null
- Since:
- JPA 2.1
String name default ""
Defaults to a provider-generated name.
- Since:
- JPA 2.1
String options default ""
- Since:
- JPA 3.2
boolean unique default false
- Since:
- JPA 2.1