Not sure if the use of the JPA Criteria API plays a role here, but as you can see in the test, your case should be covered: https://github.com/hibernate/hibernate-orm/commit/84757b12c36d020c558906e7bbed25a5ffcef206 If you could create PR against hibernate-orm with the testcase I could take a look. |