hibernate/hibernate-orm — pull request #789 by beikov (2014-08-19 00:37:17+00:00)
Title: Here a possible fix for HHH-9329

I know it's probably not the prettiest solution but at least it works.