Pull request is here:
https://github.com/hibernate/hibernate-orm/pulls
It should be backportable. I tested against 4.2.X also