The problem still exists in Hibernate 5.0.10.
My environment is Wildfly 10.1 and mysql 5.7.15.
I will make a proper test case later this week.