io.katharsis.resource.annotations.JsonApiToOne Maven / Gradle / Ivy
package io.katharsis.resource.annotations;
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 an association to single value which need to be handled by a separate repository.
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface JsonApiToOne {
/**
* Defines whether the data associated to the relation should be visible when requesting information about a
* resource that contains this relation.
* @return true if lazy, false otherwise
*/
boolean lazy() default false;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy