Hey all,
Ran into a specific challenge with Left Joins. This site gave me the SQL answer, but unsure of the JPA-QL approach to solve the problem:
http://forums.devshed.com/oracle-develo ... 83248.htmlInline example of the LEFT JOIN criteria for the ON clause below just in case link doesn't work:
Code:
select departments.dept_id
, finances.title
, finances.month
, finances.year
, finances.revenue
, finances.expenses
from departments
left
join finances
on departments.dept_id = finances.dept_id
and finances.month = 2
and finances.year = 2006
order
by dept_id
The
and finances.month = 2
and finances.year = 2006in the ON criteria are the important part I'm not sure how to do in JPA-QL (or in creating the associations).
Thanks for any help!
-D