The filter is defined in the hbm.xml file.
I am using session.enableFilter(String) and session.disableFilter(String).
If you look at the code in sessionImpl....
Code:
public Filter enableFilter(String filterName) {
errorIfClosed();
checkTransactionSynchStatus();
FilterImpl filter = new FilterImpl( factory.getFilterDefinition(filterName) );
enabledFilters.put(filterName, filter);
return filter;
}
... you can see that a new Filter is created each time.
As the parameters are stored in the Filter instance I cannot see how your system can be maintaining its parameters.