Re: EJBQLQuery and LEFT JOIN FETCH

2008-03-01 Thread Andrus Adamchik
Hi David, FETCH joins is one of the few features of EJBQL that are not yet supported. Working on it... Now, the error is of course totally confusing (what actually happens is Cayenne trying to treat the fetch join as a regular join). I just committed a small change to this code to simply

EJBQLQuery and LEFT JOIN FETCH

2008-02-29 Thread David Marko
I have two tables (Issue and Reply) with 1:N relationship. I'm trying to construct EJBQL query that would load issues and prefetch replies. I tried this query: new EJBQLQuery("select a FROM Issue a LEFT JOIN FETCH a.replyArray") .. but it throws error as below. Am I doing something wrong? Davi