io.github.joselion.springr2dbcrelationships.annotations.ProjectionOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-r2dbc-relationships Show documentation
Show all versions of spring-r2dbc-relationships Show documentation
Spring R2DBC annotations to handle entity relationships
The newest version!
package io.github.joselion.springr2dbcrelationships.annotations;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Marks a type as a projection of an entity. This feature works out of the box
* on Spring Boot, but the annotation is needed for relationship processors to
* obtain the accurate entity information hidden in the projection.
*
* @see
* Spring Data Relational | Projections
*
*/
@Inherited
@Documented
@Retention(RUNTIME)
@Target({TYPE, ANNOTATION_TYPE})
public @interface ProjectionOf {
/**
* The the entity type of the projection.
*
* @return the entity type
*/
Class> value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy