Union hql
22/01/2013 19:31
from MinhaClasse m
where m.id in (select p1.id from MinhaClasse m1 where m1.umapropriedade="grails")
or m.id in (select m2.id from MinhaClasse m2 where m2.outrapropriedade="brasil")
Regiao.findAll("from Regiao as r where r.id in ( select id from ProdutoRegiao as pr where pr.produto.id=:produto.id )", [produto:produto])
Para se registrar, clique aqui.