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

com.github.jasminb.jsonapi.annotations.RelationshipMeta Maven / Gradle / Ivy

Go to download

JSONAPI-Converter is a library that provides means for integrating with services using JSON API specification.

There is a newer version: 0.14
Show newest version
package com.github.jasminb.jsonapi.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Relationship meta annotation.
 *
 * This annotation is used in conjunction with @Relationship annotation, attribute annotated with this annotation
 * is considered to be meta-data related to named relationship object.
 *
 * 
 * 
 *     {@literal @}Type("my-type")
 *     public class MyType {
 *     	   {@literal @}Id
 *         private String id;
 *
 *         {@literal @}Relationship("relationship")
 *         private MyRelationship myRelationship;
 *
 *         {@literal @}RelationshipMeta("relationship")
 *         private MyRelationshipMeta myRelationshipMeta;
 *
 *     }
 * 
 * 
* * @author jbegic */ @Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface RelationshipMeta { String value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy