条件那条记录,库里有,但HQL就是查不出结果。我把“where t.name='熊超'”就可以,真不理解!
大家帮忙分析下写的是不是有问题,也没报错。
代码:
public ActionForward toUpdate(ActionMapping mapping,ActionForm form,
HttpServletRequest request,HttpServletResponse response){
List list=(List)request.getAttribute("list");


if(list==null){
list=(List)infoDao.find("from UserInfo t where t.name='熊超' order by t.name");
}


request.setAttribute("list",list);

return new ActionForward("/toUpdate.jsp");