0
我是Grails和Gorm的新成员,因此我遇到了一个标准问题。想象一下,我有这样的查询:将SQL查询转换为GORM标准
with NAME as(select * from table1 where something = 'true')
select distinct table1.name ,table3.* from table2 T2
join table3 T3 on T2.some_id = T3.id
join NAME T1 on T3.some_t3_id = T1.id
join table4 T4 on T2.some_t2_id = T4.id
where T1.name in (select name from NAME)
如何将此查询转换为标准?
你应该发布你的域类 – quindimildev