Thanks for the complete bug reporting. It is really helpful to fix the bug quickly. PR created at: https://github.com/hibernate/hibernate-orm/pull/3477