Please create a pull request (https://github.com/hibernate/hibernate-orm) with a unit test or attach a test that reproduces the exception.