Annotation Interface Enumeration


@Retention(RUNTIME) @Target(TYPE) public @interface Enumeration
  • Required Element Summary

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Stable DB table name.
    Human-facing display label for the enumeration type, distinct from the URL-safe name() identity.
  • Element Details

    • name

      String name
    • title

      String title
      Human-facing display label for the enumeration type, distinct from the URL-safe name() identity. Use it for a localized or multi-word title (e.g. "Статусы заказов") while keeping name ASCII so it stays a stable contract key. Surfaces in the UI metadata. When empty, falls back to name(). To label the individual values, annotate the constants with EnumLabel.
      Default:
      ""
    • tableName

      String tableName
      Stable DB table name. When empty, derived from name().
      Default:
      ""