|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface CompositeIndexes
Defines one or more composite indexes to be used with an entity. When creating a
single-attribute index, define a Index
annotation on the entity attribute.
In the following example, three indexes are created; two composite indexes named StateCityZip and LastFirst
and a single-attribute index over the birthday attribute:
@Entity @CompositeIndexes({ @CompositeIndex (name="StateCityZip", attributeNames="state,city,zip"),@CompositeIndex (name="LastFirst", attributeNames="lastName,firstName") }) public class Person {@Id String taxId; String lastName; String firstName;@Index Date birthday; String state; String city; int zip; }
Required Element Summary | |
---|---|
CompositeIndex[] |
value
The array of CompositeIndex annotations, each defining a composite index. |
Element Detail |
---|
public abstract CompositeIndex[] value
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |