hql in语法 取多个对象

来源:互联网 发布:汽车行业大数据分析 编辑:程序博客网 时间:2024/04/29 17:29

String hql="from "+Item.class.getName()+" i where i.code in ("+codes+")";   //codes= 'a','b','c'     可取code为a,b,c的三个Item对象

 

hibernateEntityDao.find(hql);