Spring Hateoas

org.springframework.hateoas.core
Annotation Type Relation


@Target(value={TYPE,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
public @interface Relation

Annotation to configure the relation to be used when embedding objects in HAL representations of Resources and Resources.

Author:
Alexander Baetz, Oliver Gierke

Optional Element Summary
 String collectionRelation
          Defines the relation to be used when referring to a collection of resources.
 String value
          Defines the relation to be used when referring to a single resource.
 

value

public abstract String value
Defines the relation to be used when referring to a single resource.

Returns:
Default:
""

collectionRelation

public abstract String collectionRelation
Defines the relation to be used when referring to a collection of resources.

Returns:
Default:
""

Spring Hateoas

Copyright © 2012-2014–2014 Pivotal, Inc.. All rights reserved.