Annotation Type MappingCorrelated


@Target({METHOD,PARAMETER,FIELD}) @Retention(RUNTIME) public @interface MappingCorrelated
Maps the annotated attribute as correlation attribute.
Since:
1.2.0
Author:
Christian Beikov
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The expression which is the basis for correlation.
    The class which provides the correlation provider.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The expression for the result mapping of the correlation relative to the correlated alias.
    The fetch strategy to use for correlation.
    The associations of the entity that should be fetched.
  • Element Details

    • correlationBasis

      String correlationBasis
      The expression which is the basis for correlation.
      Returns:
      The expression
    • correlator

      Class<? extends CorrelationProvider> correlator
      The class which provides the correlation provider.
      Returns:
      The correlation provider
    • correlationResult

      String correlationResult
      The expression for the result mapping of the correlation relative to the correlated alias.
      Returns:
      The expression
      Default:
      ""
    • fetches

      String[] fetches
      The associations of the entity that should be fetched. This is only valid if the mapping refers to an entity and is mapped as attribute with the original type.
      Returns:
      The associations of the entity that should be fetched
      Since:
      1.2.0
      Default:
      {}
    • fetch

      The fetch strategy to use for correlation.
      Returns:
      The correlation fetch strategy
      Default:
      SELECT