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
    String correlationBasis
    The expression which is the basis for correlation.
    Class<? extends CorrelationProvider> correlator
    The class which provides the correlation provider.
  • Optional Element Summary

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

    • 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