-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: IQuery.SetResultTransformer doesn't work to me
PostPosted: Tue Oct 24, 2006 2:58 pm 
Newbie

Joined: Tue Oct 24, 2006 2:51 pm
Posts: 19
NHibernate versione 1.2.1-debug
mapping files not affected
Microsoft .NET 2.0 c#

I'm using NHIbernate from a little time, i'm porting a project from a custom ORM implementation based on Ibatis.net
First of all a great thank you to all developers: i discovered that Nhibernate is really amazing!!

i'm trying to do something like that:

IQuery q = oz.CreateQuery("select users.Username, roles from Domain.EUser as users inner join users.Roles as roles where users.Username = 'admin'");

q = q.SetResultTransformer(o);
IEnumerable l = q.Enumerable();

Everything OK: only the methods TransformList and TransformTuple on my object (o in this case) will not be called
I take a look at NHibernate source code, and seems that in this point only a call to Session.Find is made, ignoring the IResultTRansformerInterface, but i can be terribly wrong

Someone would help me plz? i need this interface cause i need a way to get the query aliases from a tuple result (and this interface provides me..)

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 25, 2006 1:50 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Please submit this to JIRA, this is a bug.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.