-->
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: another alternative to the use of "Lazy"
PostPosted: Mon Apr 28, 2008 4:48 pm 
Newbie

Joined: Mon Apr 28, 2008 4:36 pm
Posts: 1
Hi,

I'm working on a complex object that contains many associations ,
and for a performance reasons i want to select the fields i need to get from the database and not all of them and this without using the lazy property.

for exemple i have and Object A :
A{
int field1
String field2.
List field3
}
field3 contains Objects of type B
B{
int fieldb1
String fieldb2
}
my need is to get a list of A with only field1 end field3 inside ( the other is null)
and for objects B in the field3 i need only fieldb1



is there a mean to do it with Hql or some hibernate API's .

thank a lot in advance for helping me.


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.