title: How to query on a many to many relationship in Grails?
body: <p>I have the following Domain Classes:</p>
  
  <pre><code>class PreparedToWork {
  
      String location        
      static hasMany = [assessors: Assessor]        
  }
  
  class Assessor {
  
      //Some Properties
  
      static belongsTo = [PreparedToWork]     
      static hasMany = [preparedToWork: PreparedToWork]
  }
  </code></pre>
  
  <p>I would like to retrieve all of the Assessors which are prepared to work in a certain location with only the prepared to work ID. I have my join table in the actual database so I'm certain the relationship is fine however have tried various querying options and have failed miserably.</p>
  
  <p>App info:</p>
  
  <ul>
  <li>Grails Version: 3.1.8  </li>
  <li>Groovy Version: 2.4.6  </li>
  <li>JVM Version: 1.8.0_60</li>
  </ul>