views:

21

answers:

1

hey
i have the following domain model:

class Location {
    String name

    static hasMany = [locations:Location, persons:Person]
}

class Person {
    String name
}

so basically each location can hold a bunch of people + "sub-locations".
what is the best way to recursively query for all persons under a location (including it's sub locations, and their sub locations, etc')?