io.katharsis.repository.annotations.JsonApiSetRelation Maven / Gradle / Ivy
package io.katharsis.repository.annotations;
import java.io.Serializable;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* Method annotated with this annotation will be used to set relationship resource 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
* - Instance of a relationship to be set
* - Relationship's filed name
*
*
* The method's return value should be void.
*
*
* @see io.katharsis.repository.RelationshipRepository#setRelation(Object, Serializable, String)
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface JsonApiSetRelation {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy