Package com.blazebit.persistence.view
Annotation Type 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 ElementsModifier and TypeRequired ElementDescriptionClass<?>
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 ElementsModifier and TypeOptional ElementDescriptionThe 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.String[]
The associations of the entity that should be fetched.
-
Element Details
-
-
correlationKeyAlias
String correlationKeyAliasThe alias to use for the correlation key in the correlation expression.- Returns:
- The expression
- Default:
- "correlationKey"
-
correlationResult
String correlationResultThe expression for the result mapping of the correlated entity type.- 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
-