I am using grails 2.1.1. Here I have 2 domain. One is -InvIssue- and other is -SlsDoMst-. There is a foreign key of SlsDoMst in InvIssue domain. Now I need to find all the SlsDoMst row that is not in InvIssue table. So far I am using plain sql for now as follows ::
my oracle query >>>
SELECT MS. *
FROM SLS_DO_MST MS
LEFT OUTER JOIN INV_ISSUE ISS ON MS.MID = ISS.SLS_DO_MST_MID
But I need to do this with criteria query. My domain are as follows ::
InvIssue >>>
class InvIssue{
String clnCode
Long id
SlsDoMst slsDoMst
String remk
}
SlsDoMst >>>
class SlsDoMst {
Long id
String code
}