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.
|