Why do I have to provide always the target type, when I build a query
be it custom query, SimpleQuery, HqlBasedQuery always I have to write

new SimpleQuery(typeof(SomeObject) ,...
new HqlBasedQuery(typeof(SomeObject) ,...

Can't I just write HQL and parse, or Transform the result to some
CustomObject?



On Jul 12, 1:26 pm, Visar Uruqi <[email protected]> wrote:
> Hello
>
> I'am new to ActiveRecord but not to Nhibernate, I've done two projects
> with Nhibernate.
> Since I saw a presentation from ayende for Castle ActiveRecord, I  was
> blown away and want to learn all what ActiveRecord has to offer, I've
> started something with ActiveRecord but I'm having a problem when I
> want to return multiple entites, I looked at the documentation
>
> http://www.castleproject.org/activerecord/documentation/v1rc1/usersgu...
>
> but still can not figure out how to return multiple entities and
> tranform them via AliasToBean<ReportingObject> ?
> what is the best way to do query's with joins where the result is
> mixed with fields from many entities?
> How to transform them to an object that is not (say) part of the
> DomainModel (not persisted) but just for reporting
> purposes?
>
> IS THERE A BOOK FOR CASTLE ACTIVE RECORD?
> OR A USER MANUAL?
> Where can I find resources for Castle Active Record?
>
> Thank you for your time

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to