Created and uploaded the test case (hibernate-orm-5.zip). Run JPAUnitTestCase.hhh123Test to replicate the error.
Hibernate 5.1.0.Final will work without errors Hibernate 5.2.2.Final and above will fail