Thanks @Guillaume Smet for your fix in the PR ( https://github.com/hibernate/hibernate-orm/pull/2345 ) I hope it can be included in the 5.3.2 release.