@Target(value={TYPE,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=Indices.class) public @interface Index
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
columnNames
When placed on the class (rather than field) you can specify the columns
to include in the index in order.
|
String |
name
Name of the index.
|
boolean |
unique
If set true indicates this is a unique index.
|
public abstract boolean unique
public abstract String[] columnNames
When placed on a field, and columnNames are specified, the field-column has to be included. You can use "${fa}" for alias.
Copyright © 2019. All rights reserved.