3.8.7.9.1. Indexes
The
org.apache.openjpa.persistence.jdbc.Index annotation represents an index on the columns of a field.
It is also used within the ContainerTable annotation to index join columns.
To index the columns of a collection element, use the org.apache.openjpa.persistence.jdbc.ElementIndex annotation.
These annotations have the following properties:
-
boolean enabled: Set this property tofalseto explicitly tell OpenJPA not to index these columns, when OpenJPA would otherwise do so. -
String name: The name of the index. OpenJPA will choose a name if you do not provide one. -
boolean unique: Whether to create a unique index. Defaults to false.