Nope, it doesn't work this way either.
It raises also a QueryException: ',' expected in SELECT before:as
[select wage.Currency as curr, (wage.Amount * wage.Percentage) as sss
from BOLayer.Wage wage ]

Actually, I haven't seen yet any example in of a NH HQL query that
uses aliases in the select clause, only Hibernate 3.0 docs have smth
about that. But anyway that is another subject.

Ok, found it while answering here: version of NH was the problem, I
just upgraded to NH v2.1 and it works, with or without column aliases.



On Jan 4, 6:40 pm, Tuna Toksoz <[email protected]> wrote:
> select wage.Currency as curr, (wage.Amount * wage.Percentage) as sss from
> Wage wage
>
> or something like that?
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
>
>
> On Mon, Jan 4, 2010 at 6:33 PM, DanV <[email protected]> wrote:
> > select wage.Currency, (wage.Amount * wage.Percentage) from Wage wage- Hide 
> > quoted text -
>
> - Show quoted text -

--

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.


Reply via email to