io.katharsis.repository.annotations.JsonApiAddRelations Maven / Gradle / Ivy
package io.katharsis.repository.annotations;
import java.lang.annotation.*;
/**
*
* Method annotated with this annotation will be used to add relationship resources to a particular resource. The method
* must be defined in a class annotated with {@link JsonApiRelationshipRepository}.
*
*
* The requirements for the method parameters are as follows:
*
*
* - Instance of a source resource
* - {@link Iterable} of relationships to be add
* - Relationship's filed name
*
*
* The method's return value should be void.
*
*
* @see io.katharsis.repository.RelationshipRepository#addRelations(Object, Iterable, String)
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface JsonApiAddRelations {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy