有没有简单的方法来标准转换为HQL? [英] Is there any easy way to convert Criteria to HQL?

查看:122
本文介绍了有没有简单的方法来标准转换为HQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经发布了<一href="http://stackoverflow.com/questions/534572/querying-on-collection-with-nhibernate-criteria-api">question前几天有关查询的集合与标准API和所有我看到的,我想的事情是不可能与标准答案之后,就在NHibernate的局势中的错误,并在休眠

我用的DetachedCriteria让所有审核规定在一起,名单很长。链条的最后一圈是越野车的标准,所以我需要改变我的所有的DetachedCriteria到HQL。

所以我的问题是是否有任何工具或方法,标准转换为HQL。

有没有什么办法让标准和HQL一起工作?

有关NHibernate的

谢谢你是进步

解决方案

我已经发送了一封电子邮件给 Ayende Rahien 关于这个问题,并感谢他为replying.He说,

答案是,不存在这样的工具,但转换通常pretty的容易。

I have posted a question few days ago about Querying on collections with the Criteria API and after all the answers i see that the thing that i am trying is not possible with the Criteria, there is a bug for the situation in nhibernate and also in hibernate

I was using DetachedCriteria to get all criterias together and the list is really long. The last circle of chain is buggy criteria so i need to change all my detachedcriteria to HQL.

So my question is is there any tool or way to convert Criteria to HQL.

or

Is there any way to get Criteria and Hql work together?

An Article about the bug in nhibernate

Thanks is advance

解决方案

I have sent an email to Ayende Rahien about the issue and thank to him for replying.He said that

the answer is that there is no such tool, but conversion is usually pretty easy.

这篇关于有没有简单的方法来标准转换为HQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆