HQL中使用in查询

 

String hqlStr = "FROM ACDStructure WHERE ACDStructure.id in (:ids)";

List<ACDStructure> structures = (List<ACDStructure>) session.createQuery(hqlStr).setParameterList("ids", cd_ids).list(); 

posted @ 2013-05-11 14:05  kangxi  阅读(652)  评论(0编辑  收藏  举报