Annotation Interface CosId


@Target({FIELD,TYPE}) @Documented @Retention(RUNTIME) public @interface CosId
Annotation to mark fields or classes for CosId.

Can be applied to:

  • Fields - directly marks the field as an ID field
  • Types - marks the class with a named ID field
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Gets the ID field name (for type-level annotation).
    Gets the ID generator name.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default field name.
  • Field Details

  • Element Details

    • value

      String value
      Gets the ID generator name.
      Returns:
      the generator name
      Default:
      "__share__"
    • field

      String field
      Gets the ID field name (for type-level annotation).
      Returns:
      the field name
      Default:
      "id"