How do you do something like this in HQL with no relationship between each table? I don’t want to use RAW Query. I want to achieve this by using HQL or Criteria.
Query below work in Oracle
select t.*
from Outsource_Invoice_Data t,
Rms_Mexico_Invoice_Filters t2,
Rms_Mexico_Invoice_Filters t3
where t.bt_Code = t2.filter_Code(+)
and t2.filter_Code is null
and to_char(t.gp_Num) = t3.filter_Code(+)
and t3.filter_code is null
order by t.customer_Id