We are experiencing the same problem when migrating from Hibernate 4.3.8 to 5.2.11. Thanks for reporting this. Does anyone know a workaround?