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

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

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

import java.lang.annotation.*;

/**
 * Indicates an association to many values which need to be handled by a separate repository.
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface JsonApiToMany {

    /**
     * Defines weather 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 true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy