Hi, I created a pull request with 2 tests and a fix: https://github.com/hibernate/hibernate-orm/pull/909