SQL statement is executed in the hibernate Oracle11g COUNT polymerization using the return type is BigDecimal
In MySQL5.5 COUNT aggregate function returns the type is BigInteger
Receiving hibernate IllegalArgumentException exception will be reported with other types of data