All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.katharsis.repository.annotations.JsonApiSetRelations Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.katharsis.repository.annotations;

import java.lang.annotation.*;

/**
 * 

* Method annotated with this annotation will be used to set 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: *

*
    *
  1. Instance of a source resource
  2. *
  3. {@link Iterable} of relationships to be set
  4. *
  5. Relationship's filed name
  6. *
*

* 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 JsonApiSetRelations { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy