What is the best way to query for something without using GORM in grails?
I have query that doesn\'t seem to fit in the GORM model, the query has a subquery
In the moste cases I use criteria queries.
def c = Account.createCriteria() def results = c { between("balance", 500, 1000) eq("branch", "London") or { like("holderFirstName", "Fred%") like("holderFirstName", "Barney%") } maxResults(10) order("holderLastName", "desc") }