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

io.github.joselion.springr2dbcrelationships.annotations.ProjectionOf Maven / Gradle / Ivy

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