[hibernate-issues] [JIRA] (HV-1279) Ensure that adding constraint on a generic type argument throw a proper exception