Here is the commit https://github.com/shuraa/hibernate-orm/commit/7c289b6d104c1af4ce6aa130faf8920745ee960f that fixes the issue, but now I've no time to create PR.