Can this be converted to createCriteria ()?
SELECT * FROM node WHERE (node.type = 'act' AND nid NOT IN (SELECT nid FROM snbr_act_community)) LIMIT 10
I know that there is an "in" operator, and here is what I still have:
def c = VolunteerOpportunity.createCriteria() def matchingActs = c.list { node { eq('type', 'act') } maxResults(10) }
I just want to see if this is possible. Otherwise, I think it is possible in HQL right?
grails gorm
firnnauriel
source share