Fixed by commit: https://github.com/hibernate/hibernate-orm/pull/1652/commits/bd53a4bf6f9e0008acdc7515065de6424baff193