Hi,

Let's say I have three Entity classes A, B and C and the relations A 1:n B 1:n 
C. The collections are named A.bs and B.cs. No relation is marked with 
fetch=EAGER in the @OneToMany annotations.

With the query

SELECT DISTINCT a FROM A a JOIN FETCH a.bs WHERE a.id = 1

I get the Bs eagerly loaded as expected in A. 

Now, is there a way to alter this query to also include the eager loading of 
the Cs in the B?

The whole point is to avoid the fetch=EAGER in the @OneToMany annotations.

Regards

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946159#3946159

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946159


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to