posted 11 years ago
I have following code:
I am setting fetch as {select|join}. In both cases the get the following output in the following loop:
if(e2!=null)
{
System.out.println("not null"); //line1
//System.out.println(e2.getFirstname()); //line2
}
and no select query is being fired on db.
My understanding is that in case of fetch="select", the proxy is loaded so the select query is not being fired. But in case fetch="join" eager loading should take place and select query should be fired immediately when instance is loaded from session. In none of the cases no selet query if fired.
Please clarify. Thanks.
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)