Marek,
Criteria and HQL have different strengths.
HQL excels at free-form complex queries. Criteria is mostly great for
criteria-based search, where the search fields and order are dynamic.
The query that you presented was a better fit for HQL, that's it. Using
QueryOver to "avoid hardcoding" is just a bad idea.
Diego
On Wed, Aug 11, 2010 at 17:48, marek <[email protected]> wrote:
> Thanks for your answers :)
>
> @Diego
> > Resharper even supports renames in strings, if that's your concern.
> I know what ReSharper can - I'm using it. Unfortunately not everybody
> is using ReSharper.
> And I was not asking which tool can help me to rename strings. Plain
> VS.NET can rename/replace etc. strings too.
>
> @Fabio
> > YAGNI
> Maybe not, I was just curious if that is possible and I prefer
> ICriteria over HQL - taste thing.
> I can live with HQL, not a big deal. Just tried to ask the experts if
> it is possible or not...
>
> Is that so hard just to say - "No, you can't do that using ICriteria"?
>
> No idea why you guys are sometimes so sensitive regarding some NH
> questions.
> It is great product and you are doing great job!
> Take it easy :)
>
> Thanks again,
> Marek
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
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.