Time ago I opened a pull request with a proposal fix for this issue. The pull request is number 602 -> https://github.com/hibernate/hibernate-orm/pull/602.