JDO Annotation

Index

Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD
Implemented Interfaces:
Annotation

Annotation for a database index. Used for database schema generation to create indexes. Corresponds to the xml element "index".
Since:
JDO 2.1

Public Annotation Attributes

Column[] columns default {}
Columns that compose this index.
Since:
JDO 2.1
String[] members default {}
Member (field and property) names that compose this index.
Since:
JDO 2.1
String name default ""
Name of the index
Since:
JDO 2.1
String table default ""
Table for the index.
This is needed iff annotating a type where the index is not defined on the primary table for the type.
Since:
JDO 2.1
String unique default ""
Whether this index is unique
Since:
JDO 2.1