码迷,mamicode.com
首页 > 其他好文 > 详细

hql 中in查询

时间:2016-08-16 22:17:34      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:hql 中in查询

String hql="from User u where u.id in (:userlist)";  
Query query = getSession().createQuery(hql);  
List<Long> list =new ArrayList<Long>();
query.setParameterList("userlist",list);


本文出自 “猴子也疯狂” 博客,谢绝转载!

hql 中in查询

标签:hql 中in查询

原文地址:http://1251769215.blog.51cto.com/11633863/1839283

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