Re: Raw SQL in Criteria improvement

"Sukhjinder Sidhu" <[email protected]> Thu, 7 Aug 2008 09:58:23 +0100
Newsgroups gmane.comp.windows.dotnet.nhibernate.devel
Message-ID <643348F01304DE42BD583294C0C3263F0143C497@frontierexc.frontier.local>
I did something similar, but mine looks a bit-more hack-esque than yours:

http://jira.nhibernate.org/browse/NH-1351


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jerome Haltom
Sent: 06 August 2008 20:36
To: the NHibernate development list
Subject: [NHibernate-development] Raw SQL in Criteria improvement

Howdy. Looks like when using Expression.Sql with a the criteria API, you can only use {alias} to substitute the name of the root table name. This sucks! Since I don't like this so much, I want to fix it.

So I did!

The fix is so small, I just wanted to shove it to the list and see if anybody minds checking it out and committing it.

Now, the cast to (CriteriaImpl) sucks. But I don't know how to do it properly. I'm sure there's someway, right? :)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/