在Oracle11g中hibernate执行SQL语句使用COUNT聚合函数时,返回类型是BigDecimal 在MySQL5.5中COUNT聚合函数返回类型则是BigInteger 用其他类型数据接收hibernate则会报IllegalArgumentException异常 来源:https://www.cnblogs.com/MFlowers/p/11332453.html 标签 hibernate 聚合函数 count函数 sql函数