Please create a pull request that adds a test to org.hibernate.jpa.test.criteria that reproduces your issue.