Annotation Interface WebQuery
Declares shared web-query metadata for a controller method.
This annotation is intended to be placed on handler methods so query-related configuration can be defined once and reused by both filtering and sorting argument resolvers.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<?> Entity class against which filter and sort fields are resolved. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional field mappings used to expose API-facing aliases for entity fields.
-
Element Details
-
entityClass
Class<?> entityClassEntity class against which filter and sort fields are resolved.- Returns:
- target entity class
-
fieldMappings
FieldMapping[] fieldMappingsOptional field mappings used to expose API-facing aliases for entity fields.- Returns:
- mappings between API names and entity paths
- Default:
{}
-