Please copy the information from stackoverflow into this issue. If you can't edit the description, just add it as a comment and I'll update the description. Sorry, I don't have the time to copy and reformat your test.
Also, please attach a minimal test case that reproduces your issue. You can find a test template at: https://github.com/hibernate/hibernate-test-case-templates/