Package com.blazebit.persistence.view
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
-
correlationBasis
String correlationBasisThe expression which is the basis for correlation.- Returns:
- The expression
-
correlator
Class<? extends CorrelationProvider> correlatorThe class which provides the correlation provider.- Returns:
- The correlation provider
-
-
-
correlationResult
String correlationResultThe expression for the result mapping of the correlation relative to the correlated alias.- Returns:
- The expression
- Default:
- ""
-
fetches
String[] fetchesThe 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
FetchStrategy fetchThe fetch strategy to use for correlation.- Returns:
- The correlation fetch strategy
- Default:
- SELECT
-