fix for GRAILS-9328 + refactored HibernateCriterionAdapter + test case
test case fix
Merge pull request #324 from tudor-malene/GRAILS-9328

Grails 9328