Annotation Interface Index


@Retention(RUNTIME) @Target({}) public @interface Index
Defines a database index.

The index can be either simple or composite. Please note that the actual name of the index may differ. This field is case insensitive.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • name

      String name
      Returns:
      the table unique index name.
    • methodNames

      String[] methodNames
      Returns:
      an array of accessors or mutators to the columns that should be included in the index.
    • unique

      boolean unique
      Default:
      false