码迷,mamicode.com
首页 > 编程语言 > 详细

SpringMVC 使用hibernate返回list

时间:2015-05-14 12:27:02      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:

在dao中查询出来的实体

return this.dao.getListByHQL("from 类名");

在controller中要得到这个list,

List<类名> 类名首字母小写= platformOrgService.findAllOrg();

request.setAttribute("类名首字母小写", 类名首字母小写);


SpringMVC 使用hibernate返回list

标签:

原文地址:http://my.oschina.net/duanvincent/blog/414672

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!