This JIRA issue documents the issue. It is a known side-affect.
The Hibernate Criteria is considered deprecated (see note in http://docs.jboss.org/hibernate/orm/4.3/devguide/en-US/html_single/#d5e5497), so this will not be fixed.