Look at the signature/documentation for enableFilter(...):
Code:
/**
* Return an enabled Hibernate Filter for the given filter name.
* The returned Filter instance can be used to set filter parameters.
* @param filterName the name of the filter
* @return the enabled Hibernate Filter (either already enabled
* or enabled on the fly by this operation)
* @throws IllegalStateException if we are not running within a
* transactional Session (in which case this operation does not make sense)
*/
Filter enableFilter(String filterName) throws IllegalStateException;
"The returned Filter instance can be used to set filter parameters."
It returns the enabled Filter object, and then you can set any parameters required for the filter to actually be applied.
Christian