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

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

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

import io.katharsis.queryParams.QueryParams;

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 perform find one relationship resource on 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. An identifier of a source resource
  2. *
  3. Relationship's field name
  4. *
*

* The return value must be a resources of {@link JsonApiRelationshipRepository#target()} type. *

* * @see io.katharsis.repository.RelationshipRepository#findOneTarget(Serializable, String, QueryParams) */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface JsonApiFindOneTarget { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy