Annotation Type MappingCorrelatedSimple


@Target({METHOD,PARAMETER,FIELD}) @Retention(RUNTIME) public @interface MappingCorrelatedSimple
Maps the annotated attribute as correlation attribute with a simple declarative mapping of the correlation.
Since:
1.2.0
Author:
Christian Beikov
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The entity class which is correlated.
    The expression which is the basis for correlation.
    The expression to use for correlating the entity type to the correlation basis.
  • Optional Element Summary

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

    • correlated

      Class<?> correlated
      The entity class which is correlated.
      Returns:
      The correlated entity class
    • correlationBasis

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

      String correlationExpression
      The expression to use for correlating the entity type to the correlation basis.
      Returns:
      The expression
    • correlationKeyAlias

      String correlationKeyAlias
      The alias to use for the correlation key in the correlation expression.
      Returns:
      The expression
      Default:
      "correlationKey"
    • correlationResult

      String correlationResult
      The expression for the result mapping of the correlated entity type.
      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