Module org.eclipse.persistence.core
Annotation Type Index
Allow a database INDEX to be define when generating DDL.
 The @Index can be defined on a Entity class, or on an attribute.
 The column is defaulted when defined on a attribute.
- Since:
- EclipseLink 2.2
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionThe catalog of the INDEXString[]Specify the set of columns to define the index on.The name of the INDEX, defaults to INDEX_<table-name>The schema of the INDEXThe table to define the index on, defaults to entities primary table.boolean
- 
Element Details- 
nameString nameThe name of the INDEX, defaults to INDEX_<table-name>- Default:
- ""
 
- 
schemaString schemaThe schema of the INDEX- Default:
- ""
 
- 
catalogString catalogThe catalog of the INDEX- Default:
- ""
 
- 
tableString tableThe table to define the index on, defaults to entities primary table.- Default:
- ""
 
- 
uniqueboolean unique- Default:
- false
 
- 
columnNamesString[] columnNamesSpecify the set of columns to define the index on. Not required when annotated on a field/method.- Default:
- {}
 
 
-