[jboss-user] [EJB 3.0] - Re: Query

andydale do-not-reply at jboss.com
Tue Jan 30 08:02:04 EST 2007


Hi,

In an EJBQL query you can fetch the collection by using a fetch join, such as the following example (taken from Enterprise Java Beans 3.0)

SELECT c FROM Customer c LEFT JOIN FETCH c.phones

Where Customer is an entity containing a collection (relationship) of phones.


Cheers,

Andy

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

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



More information about the jboss-user mailing list