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
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!