I created a pull request for this issue (which also adds an extra testcase for related issue
HHH-10767 Open which seems to already be solved): https://github.com/hibernate/hibernate-orm/pull/1725 P.S. If this fix could be backported to hibernate 5.1.x and 5.0.x that would be extremely helpful to us. |