io.katharsis.resource.annotations.JsonApiId Maven / Gradle / Ivy
package io.katharsis.resource.annotations;
import io.katharsis.utils.parser.TypeParser;
import java.lang.annotation.*;
/**
* Defines a field which will be used as an identifier of a resource. It must be assigned to a field which implements
* {@link java.io.Serializable} and {@link TypeParser} is able to parse the value.
*
* @see JSON API - Resource Identification
* @see TypeParser
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface JsonApiId {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy