Annotation Interface ParamDef


@Target({}) @Retention(RUNTIME) public @interface ParamDef
Details about a parameter declared in a FilterDef.

Mainly used to support cases where the proper type cannot be deduced by Hibernate.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the parameter.
    The type to use when binding the parameter value.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Supplier>
    A class implementing Supplier which provides arguments to this parameter.
  • Element Details

    • name

      String name
      The name of the parameter.
    • type

      Class<?> type
      The type to use when binding the parameter value.

      Generally deduced from the bind value. Allows to specify a specific type to use.

      The supplied Class may be one of the following:

    • resolver

      Class<? extends Supplier> resolver
      A class implementing Supplier which provides arguments to this parameter. This is especially useful in the case of auto-enabled filters.

      When a resolver is specified for a filter parameter, it's not necessary to provide an argument for the parameter by calling Filter.setParameter(String, Object).

      Default:
      java.util.function.Supplier.class