Package org.hibernate.annotations
Annotation 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 -
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameThe name of the parameter. -
type
Class<?> typeThe 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:-
a
UserType
-
an
AttributeConverter
-
a
JavaType
-
any Java type resolvable from
JavaTypeRegistry
-
a
-
-
-
resolver
A class implementingSupplier
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
-