@Target(value={}) @Retention(value=RUNTIME) public @interface 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 a
column_list
, as follows:
column::= index_column [,index_column]* index_column::= column_name [ASC | DESC]
If ASC
or DESC
is not specified,
ASC
(ascending order) is assumed.
Table
,
SecondaryTable
,
CollectionTable
,
JoinTable
,
TableGenerator
Modifier and Type | Required Element and Description |
---|---|
String |
columnList
(Required) The names of the columns to be included in the index,
in order.
|
public abstract String columnList
public abstract String name
public abstract boolean unique
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.