I have Hotel entity:
class Hotel { City city }
Now, i need count of hotels with given city. It could be done in this way:
def h
There are dynamic counters as well as finders on domain objects:
Hotel.countByCity(city)
More details in the user guide, of course