Package io.micronaut.data.annotation
Annotation Interface Index
@Retention(RUNTIME)
@Documented
@Target({TYPE,FIELD,METHOD,ANNOTATION_TYPE})
@Repeatable(Indexes.class)
@Inherited
public @interface Index
Designates one of the indexes part of the indexes member within an Table annotation. Typically not used
 directly but instead mapped to via annotation such as 
javax.persistence.Index.- Since:
- 2.4
- Author:
- Davide Pugliese
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional Elements
- 
Element Details- 
columnsString[] columns(Required) The list of columns to be used to create an index.- Returns:
- The list of columns
 
 
- 
- 
- 
nameString name(Optional) The name of the index; defaults to a provider-generated name.- Returns:
- The name of the index
 - Default:
- ""
 
- 
uniqueboolean unique- Returns:
- (Optional) Whether the index is unique
 - Default:
- false
 
 
-