Annotation Type Definition


@Target({FIELD,METHOD,TYPE}) @Retention(RUNTIME) @Repeatable(Definitions.class) @Beta public @interface Definition

Annotate a SqlObject type, method, or field as @Definition in order to define an attribute for all SqlObject methods in the same type.

  • On a type, both the key and value must be specified.
  • On a method, the key defaults to the method name, and the value will be the result of calling the method statically.
  • On a field, the key defaults to the field name, and the value will be the result of getting the field value statically.