hibernate中“ .list()”的默认值似乎是“数字”的BigInteger返回类型。解决方法:
session.createSQLQuery("select column as num from table") .addScalar("num", StandardBasicTypes.LONG).list();
hibernate中“ .list()”的默认值似乎是“数字”的BigInteger返回类型。解决方法:
session.createSQLQuery("select column as num from table") .addScalar("num", StandardBasicTypes.LONG).list();