[hibernate-issues] [JIRA] (HV-847) Custom constraint causes "target cannot be inferred" exception when used for return value