|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={}) @Retention(value=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 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
Required Element Summary | |
---|---|
java.lang.String |
columnList
(Required) The names of the columns to be included in the index, in order. |
Optional Element Summary | |
---|---|
java.lang.String |
name
(Optional) The name of the index; defaults to a provider-generated name. |
boolean |
unique
(Optional) Whether the index is unique. |
Element Detail |
---|
public abstract java.lang.String columnList
public abstract java.lang.String name
public abstract boolean unique
|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |