overwriting my master branch with origin my pull request closed automatically. This is the new one: https://github.com/hibernate/hibernate-orm/pull/1084