-
@Documented @Target(TYPE) @Retention(RUNTIME) public @interface Index
Used in schema generation to specify creation of an index.Note that it is not necessary to specify an index for a primary key, as the primary key index will be created automatically.
The syntax of the
columnList
element is acolumn_list
, as follows:column::= index_column [,index_column]* index_column::= column_name [ASC | DESC]
If
ASC
orDESC
is not specified,ASC
(ascending order) is assumed.- 从以下版本开始:
- Java Persistence 2.1