Annotation Interface Index


@Documented @Target(FIELD) @Retention(RUNTIME) public @interface Index
索引注解。

标记在实体类字段上,表示该字段需要创建索引。

Since:
1.0.0
Version:
1.0.0
Author:
Berry_so
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    索引名称。
    boolean
    是否为唯一索引。
  • Element Details

    • name

      String name
      索引名称。
      Returns:
      索引名,默认自动生成
      Default:
      ""
    • unique

      boolean unique
      是否为唯一索引。
      Returns:
      true 表示创建唯一索引,默认为 false
      Default:
      false