persistence@glassfish.java.net

Re: Is it legal to have a JPQL query that has multiple LEFT JOIN FETCHes?

From: Jon Miller <jemiller_at_uchicago.edu>
Date: Mon, 19 Feb 2007 15:07:42 -0600

I just tried the following which throws a NPE too. So, it looks like it's
probably the fact that I'm mapping to the same class rather than the fact
that I had two LEFT JOINs which is what I thought might have been the
original problem. Is this a bug?

SELECT i FROM Item i LEFT JOIN FETCH i.subItems ORDER BY i.name

Jon