Annotation Interface Index


@Retention(RUNTIME) @Target(TYPE) public @interface Index
Indicates that the annotated entity should have an index created on specified columns.
Since:
1.0
Author:
Blyzhnytsia Team
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    (Required) The names of the columns to be included in the index, in order.
  • Optional Element Summary

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

    • name

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

      String columnList
      (Required) The names of the columns to be included in the index, in order.
      Returns:
      the column list for the index