[jboss-user] [EJB 3.0] - Re: Query
andydale
do-not-reply at jboss.com
Tue Jan 30 10:21:51 EST 2007
It is possible to keep fetching ahead, but you need to watch out for the classic hibernate "Could not fetch multiple bags" exception. To do multiple fetching, you will just need to use aliases, for example:
SELECT c FROM Customer c LEFT JOIN FETCH c.phones cp JOIN FETCH cp.<some other collection>
Cheers,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008342#4008342
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008342
More information about the jboss-user
mailing list