Annotation Interface WebQuery


@Target(METHOD) @Retention(RUNTIME) @Documented public @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 Elements
    Modifier and Type
    Required Element
    Description
    Entity class against which filter and sort fields are resolved.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional field mappings used to expose API-facing aliases for entity fields.
  • Element Details

    • entityClass

      Class<?> entityClass
      Entity class against which filter and sort fields are resolved.
      Returns:
      target entity class
    • fieldMappings

      FieldMapping[] fieldMappings
      Optional field mappings used to expose API-facing aliases for entity fields.
      Returns:
      mappings between API names and entity paths
      Default:
      {}