[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6893) Apply patch provided by Harald