Annotation Type Index
-
@Retention(SOURCE) @Target(FIELD) public @interface IndexCan be used to: - specifies that the property should be indexed - define multi-column index throughEntity.indexes()- See Also:
Entity.indexes()
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringnameOptional name of the index.booleanuniqueWhether the unique constraint should be created with base on this indexjava.lang.StringvalueComma-separated list of properties that should be indexed, e.g.
-
-
-
Element Detail
-
value
java.lang.String value
Comma-separated list of properties that should be indexed, e.g. "propertyA, propertyB, propertyC" To specify order, add ASC or DESC after column name, e.g.: "propertyA DESC, propertyB ASC" This should be only set if this annotation is used inEntity.indexes()- Default:
- ""
-
-