如何在Grails Gorm中查询3个表

问题描述 投票:0回答:1

我是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.
grails groovy gorm criteria projection
1个回答
0
投票

直截了当

© www.soinside.com 2019 - 2024. All rights reserved.