[hibernate-issues] [JIRA] (HHH-16697) Auto type discovery for aggregate functions wrongly determines Integer instead of BigDecimal for Oracle