I get following error when trying to use Criteria with filtering on custom user type with applied filter:
There is a bug in QueryParameters.processFilters:
It use Type.isComponentType to check whether the type is a composite type, but then the type is casted to ComponentType. According to javadocs Type.isComponentType returns true for CompositeType as well.
This is likely regression from HHH-10991. I did not have a chance to test on another versions, but it does not work at least starting from 5.4.2