Thank you for your example. I've managed to reproduce the issue with it.
The following pull request contains the related test case and a fix proposal :
https://github.com/hibernate/hibernate-orm/pull/561