Annotation Interface EntityMapping


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface EntityMapping
Annotation for mapping a handler method to a federated schema type.
Since:
1.3.0
Author:
Rossen Stoyanchev
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Customize the name of the entity to map to.
    Effectively an alias for name().
  • Element Details

    • name

      @AliasFor("value") String name
      Customize the name of the entity to map to.

      By default, if not specified, this is initialized from the method name, with the first letter changed to upper case via Character.toUpperCase(char).

      Default:
      ""
    • value

      @AliasFor("name") String value
      Effectively an alias for name().
      Default:
      ""