-->
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: Problem with custom ResultTransformer
PostPosted: Wed Apr 13, 2011 12:44 am 
Newbie

Joined: Mon Apr 11, 2011 4:19 am
Posts: 11
Hi,

I have an requirement to select only essential properties, hence I build my query dynamically and the result is of type List<Object[]>

I need to transform Object[] to type, say Student (which can have a property of associated class to be selected, eg: Department name)

I created a custom ResultTransformer by implementing ResultTransformer and overrode the methods transformList and transformTuple. The problem I am getting is, result is not getting transformed, meaning none of the methods are getting executed though I have set my custom result transformer in the query.

I would like to get some help or directions, what would have gone wrong.

Thanks,
Senthilkumar Arumugam


Top
 Profile  
 
 Post subject: Re: Problem with custom ResultTransformer
PostPosted: Mon Mar 19, 2012 12:23 am 
Newbie

Joined: Sun Mar 18, 2012 11:04 pm
Posts: 1
Hello, I solve this today: https://github.com/hibernate/hibernate-orm/pull/290


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.