title: Grails: How can I search through children in a hasMany relationship?
body: <p>If I have a Client domain class, and that Client hasMany Courses.  How do I find the course I'm looking for?  For instance:</p>
  
  <pre><code>class Client {
      String name
      static hasMany = [courses:Course]
  }
  
  class Course {
      String name
      static belongsTo = [client:Client]
  }
  
  def client = Client.get(1)
  </code></pre>
  
  <p>I want to "find" or "search" within that courses relationship. Maybe something like:</p>
  
  <pre><code>client.courses.find(name:'Whatever')
  </code></pre>
  
  <p>Is there any way to do this with Grails?</p>