Well... you know I don't have any kind of problem to improve Criteria API.
The Criteria API, in Hibernate, was thought only for some specific dynamic
query and not for every kind of query.
They are using HQL, as we are using LINQ, since long time because they have
an Eclipse plugin to support intellisense and refactoring for HQL too (and
remember that in Hibernate HQL is to query XML entities too).
In .NET we are intending to use of Criteria API for everithing and in NH we
have a more powerful implementation of CriteriaAPI only for that reason...
but you know... Criteria have some limitation compared with HQL.
What I would like to do is evangelize users to use the right QuerySystem for
the right target.
NHibernate are supporting (so far) these query systems:
HQL
Criteria API
LINQ
H-SQL (SQL in Hibernate style using '{' etc.)
SQL
So far five way to query your domain (and you know what I'm doing with
Artorius), and I can't understand why a lot of users are using Criteria for
everything without know what mean NamedQuery or any other querySystem
supported by NH.
I less understand when somebody write : I know how do it using HQL but I
want use Criteria even if there is not reason in this "special" case
And I understand more less when the motivation is : I want use Criteria for
"programming style"
Thats all.
Said that... each one can do it in his way, the JIRA, to ask improvements,
is there and the code-base is there
Sorry Alex... your mail is only the last of 2 years of heard the same
matter.
2008/12/19 Will Shaver <[email protected]>
> Why do you need to be rid of the group by column in your results? It should
> not adversely affect your query performance by a huge margin. The result
> order can be maintained through adding order by to the query. It may be
> possible to hack the source so as to add a GroupByButDontSelect() method of
> some sort, but for what end?
> I wrote the existing group by code for the criteria queries (last I checked
> it still doesn't exist in Hibernate). It might not be too bad to add in a
> boolean for actually selecting it or not, I'm not sure as it has been
> several months since I've reviewed that section of code.
>
> -Will
>
>
> On Fri, Dec 19, 2008 at 7:57 AM, Fabio Maulo <[email protected]> wrote:
>
>> 2008/12/19 alex <[email protected]>
>>
>>>
>>> Another reason for using Criteria API is Resharper and intellisense.
>>>
>>
>> well... you have the problem and I hope you can solve it soon in your way.
>> I did myyyyy waaaaay! (as said THE VOICE)
>> --
>> Fabio Maulo
>>
>>
>>
>
> >
>
--
Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---