Package com.blazebit.persistence.view
Annotation Type MappingSubquery
@Target({METHOD,PARAMETER,FIELD}) @Retention(RUNTIME) public @interface MappingSubquery
Maps the annotated attribute as subquery.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends SubqueryProvider>
value
The class which provides the subquery. -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
expression
The expression around the subquery.String
subqueryAlias
The subquery alias.
-
Element Details
-
value
Class<? extends SubqueryProvider> valueThe class which provides the subquery.- Returns:
- The subquery provider
-
-
-
expression
String expressionThe expression around the subquery.- Returns:
- The expression
- See Also:
SelectBuilder.selectSubquery(java.lang.String,java.lang.String,java.lang.String)
- Default:
- ""
-
subqueryAlias
String subqueryAliasThe subquery alias.- Returns:
- The subquery alias
- See Also:
SelectBuilder.selectSubquery(java.lang.String,java.lang.String,java.lang.String)
- Default:
- ""
-