【发布时间】:2011-08-22 17:37:26
【问题描述】:
嗨,我有一个休眠查询,它给了我一个类型为List<List<integer>> 的列表。
我该如何迭代呢?我的休眠查询是:
String SQL_QUERY = "select DISTINCT cbl.franchiseId,cbl.resellerId from
CustomerBusinessLocation cbl where cbl.cmcustLocId in (:locationId)";
Query query = getSession().createQuery(SQL_QUERY);
query.setParameterList("locationId", customerLocId);
List<List<Integer>> rc_list = query.list();
或者,有没有其他方法可以轻松提取这些数据?
【问题讨论】: