I have tested same case with Hibernate 5.0.2.Final, and I get the same error. I added 5.0.2 to affected versions, and attached updated test case with Hibernate 5.