Package com.blazebit.persistence.view
Annotation Type MappingCorrelated
Maps the annotated attribute as correlation attribute.
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe expression which is the basis for correlation.Class<? extends CorrelationProvider>
The class which provides the correlation provider. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe expression for the result mapping of the correlation relative to the correlated alias.The fetch strategy to use for correlation.String[]
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
-