Good bug reporting! I created a PR with your testing case attached: https://github.com/hibernate/hibernate-orm/pull/3330 .