[hibernate-issues] [JIRA] (HHH-10412) case/when in criteria always casts resulting object which fails on mysql with boolean