Annotation Interface Index


Designates one of the indexes part of the indexes member within a Table annotation. Typically not used directly but instead mapped to via annotation such as javax.persistence.Index.
Since:
2.4
Author:
Davide Pugliese
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    (Required) The list of columns to be used to create an index.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    (Optional) The name of the index; defaults to a provider-generated name.
    boolean
     
  • Element Details

    • columns

      String[] columns
      (Required) The list of columns to be used to create an index.
      Returns:
      The list of columns
    • name

      String name
      (Optional) The name of the index; defaults to a provider-generated name.
      Returns:
      The name of the index
      Default:
      ""
    • unique

      boolean unique
      Returns:
      (Optional) Whether the index is unique
      Default:
      false