【发布时间】:2020-07-23 00:43:05
【问题描述】:
我是 grails 框架的新手,如何查询它们之间有关联的 3 个表
Class A{
static hasMany = [b:B]
}
enter code here
class B{
long aId // Id of table A
}
class c{
B b //B reference
}
SQL查询:select * from C where b_id in (select id from B where a_id='10'_)
Any help will be appreciated.
【问题讨论】:
标签: grails groovy grails-orm criteria projection