The following EJBQL query uses an identification variable in the SELECT clause
that is defined in an OUTER JOIN clause. The generated SQL misses an outer join,
but uses an inner join instead.
EJBQL: SELECT c FROM Order o JOIN o.customer c
SQL: SELECT t0.ID, ... FROM CUSTOMER_TABLE t0, ORDER_TABLE t1
WHERE (t1.CUST_ID = t0.ID)