日期:2014-05-17 浏览次数:20735 次
public List<BaseInfo> findbyIds(Integer[] ids) { String hql = "from BaseInfo b where b.userID in (:ids)"; }
String hql = "from BaseInfo b where b.userID in (:ids)";
------解决方案--------------------
query.setParameter("ids", ids);试试可以吗?hibernate语句还可以用in吗?我不清楚