Perhaps I understand what you are looking for... First of all, please don't
create a JIRA for this matter because we know it and we have more than one
issue about it.
What you want (but not needed by your last example) is the support of
aliases in HQL select clause.
NH don't support aliases in select-clause and to support it we are waiting
an AST based HQL parser.
If you want, you can use PositionalToBeanResultTransformer, available in
uNhAddIns and in Burrow.AppBlock, or you can create your own trasformer.
But note that it is a completely different matter than Transformers support.
Bye.
Fabio Maulo
P.S. hope lord are helping me to close this issue between forum and JIRA
2008/9/17 Fabio Maulo <[EMAIL PROTECTED]>
> 2008/9/16 crabo <[EMAIL PROTECTED]>
>
>> I really want a " partial object query" . the different is ,I want my
>> DTO is just the mapping entity.
>> so I test:
>> var userInfos = s.CreateQuery("select u.Name, u.Email from User u")
>> .SetResultTransformer(Transformers.AliasToBean(typeof(User))
>> .List()
>>
>
> Here is some other problem out of IT matters...
>
>
--
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
-~----------~----~----~----~------~----~------~--~---