Annotation Interface CosId


@Target({FIELD,TYPE}) @Retention(RUNTIME) public @interface CosId
Marks the id field IdFiller fills (07-runtime-and-spring.md ยง3).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The id field, when the annotation is on the type.
    The generator name.
  • Element Details

    • value

      String value
      The generator name.
      Returns:
      the generator name
      Default:
      "default"
    • field

      String field
      The id field, when the annotation is on the type.
      Returns:
      the field name
      Default:
      "id"