我是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查询:从*选择C,其中b_id在其中(从B选择ID,其中a_id = '10'_)
Any help will be appreciated.
直截了当