SpringMVC 使用hibernate返回list
时间:2015-05-14 12:27:02
收藏:0
阅读:135
在dao中查询出来的实体
return this.dao.getListByHQL("from 类名");
在controller中要得到这个list,
List<类名> 类名首字母小写= platformOrgService.findAllOrg();
request.setAttribute("类名首字母小写", 类名首字母小写);
评论(0)