in条件比较特殊,除了使用setParameterList方法,另外占位符还需要使用“()”括起来,否则会报错.
Hibernate: HQL and assigning values to an in () clause This took me a while to find so I'll document it here. |
URL: http://jroller.com/page/geyerba/20050421
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=1914345