Annotation Type ParentResource


@Target({METHOD,FIELD}) @Retention(RUNTIME) @Documented public @interface ParentResource

Marks an entity's parent which will be used to resolve any parent ID used in path parameters.

For example, if an entity needs its parent ID and its ID in the path of a resource method, we will use this entity's @XmlID id, and its parent's, in reverse order, to form the path parameter list (from the furthest parent, to this entity).

Author:
Stéphane Épardaud