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

io.katharsis.resource.annotations.JsonApiIncludeByDefault Maven / Gradle / Ivy

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

import io.katharsis.resource.exception.ResourceException;

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;

/**
 * Indicates additional resources that should be included by default with every primary resource.
 * The field can be added to every relation defined by {@link JsonApiToOne} or {@link JsonApiToMany}. Otherwise,
 * {@link ResourceException} will be thrown at the initialization phrase.
 *
 * 

Included resources added using this annotation are not analyzed for nested inclusion, that is only first level * of inclusion is provided. */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.METHOD}) public @interface JsonApiIncludeByDefault { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy