4
转换HQL我有这样的查询:“在”限制条件
Query query = session.createQuery("from table1 c where c.colummewhatever =:value and (select p.colummewhatever from table2 p where c.fkidcolumme=p.idcolumme) in (:listPColummewhatever) ");
有没有办法给in
限制转化为Criteria
?
以及TKS!....只是一个很小的问题,我不知道怎么翻译拼接为标准......同时,我已发现DetachedCriteria :) – Silvia
您不需要DetachedCriteria来创建连接。你为什么不阅读参考文档,这些文档都是在这里解释的? http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html_single/#querycriteria-associations –