-->
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: Removing properties from select
PostPosted: Fri Sep 30, 2005 6:13 am 
Newbie

Joined: Thu Aug 18, 2005 4:23 am
Posts: 11
Location: Sheffield
I have got an object which contains some complicated derived fields, based on values on other tables etc. I am worried about the performance implications of this since the derived queries always appear in the select clause of the sql if I use the criteria api. Is there a way of preventing this, ie only select a limited number of values for a particular class, so that when i do not need to look at the derived fields their queries are not run?

I have tried query by example and using Example.excludeProperty("name") wihout success. This doesnt seem to do what i want it to presumably it just excludes it from restrictions specified by the Example??

If there is not a simple solution using the criteria api, would I be able to do this be implementing a class heirarchy with the derived fields included in the subclass?


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.