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.  [ 1 post ] 
Author Message
 Post subject: Changing the projection of a criteria object.
PostPosted: Tue Oct 20, 2009 6:11 am 
Newbie

Joined: Fri Aug 07, 2009 9:54 am
Posts: 2
Hi
I have a User entity which has a many-to-many relation to the Group entity.
After constructing the criteria and adding all the restriction I have a check whether or not to count all the records in the database ...if yes I change the projection. And after that I need to change back to the original projection, because if a set it to null or use ResultTransformer or whatever the result list is filled with a object array elements and inside that are the User and Group objects Object[]{User, Group}. But naturally I need the list to be filled with User objects and inside that a collection of Group objects.


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

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.