Annotationsschnittstelle Relation


@Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface Relation
Identical to Spring's Hateoas @Relation annotation. It configures the name/relation to be used when embedding objects in HAL representations of HalResourceWrapper and HalListWrapper.
  • Optionale Elemente - Übersicht

    Optionale Elemente
    Modifizierer und Typ
    Optionales Element
    Beschreibung
    Defines the relation to be used when referring to a collection of resources.
    Defines the relation to be used when referring to a single resource.
    Defines the relation to be used when referring to a single resource.
  • Elementdetails

    • value

      @AliasFor("itemRelation") String value
      Defines the relation to be used when referring to a single resource. Alias for itemRelation().
      Gibt zurück:
      the relation name for a single resource
      Standard:
      ""
    • itemRelation

      @AliasFor("value") String itemRelation
      Defines the relation to be used when referring to a single resource. Alias of value().
      Gibt zurück:
      the relation name for a single resource
      Standard:
      ""
    • collectionRelation

      String collectionRelation
      Defines the relation to be used when referring to a collection of resources.
      Gibt zurück:
      the relation name for a collection of resources
      Standard:
      ""