I basically want to do this SQL statement:
SELECT * FROM Table1
JOIN Table2
ON (
Table2.ID = Table1.THIS_ID
OR
Table2.ID = Table1.THAT_ID
)
Using createQueryBuilder and NOT createQuery.
Is it possible? All the examples I can find only deal with a single condition and don't tackle the issue of AND/OR within a join.
Thanks.