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

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

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

import io.katharsis.utils.parser.TypeParser;

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;

/**
 * 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