Good bug report. I created a testing case PR at https://github.com/hibernate/hibernate-orm/pull/3157 . Will work on its fix later.