Thanks to Nikolay Shestakov for the pull request: https://github.com/hibernate/hibernate-orm/pull/487
Thanks to Nikolay Shestakov for the pull request: https://github.com/hibernate/hibernate-orm/pull/487