title: How to findByAll with a Domain hasMany member?
body: <p>I have:</p>
  
  <pre><code>static hasMany = [
      services:String,
      tags:String
  ]
  </code></pre>
  
  <p>I need to search the database for services.</p>
  
  <p>This is the JSON for services</p>
  
  <pre><code> "services":["tid.2","tid.3"]
  </code></pre>
  
  <p>If services was a String (service) and not a hasMany String then tbis works</p>
  
  <pre><code>def inUse = ServiceTemplate.findAllByName(serviceTemplateInstance.service).size() &gt; 1
  </code></pre>
  
  <p>How can I do this with services?</p>
  
  <p>I've tried</p>
  
  <pre><code>            def c = ServiceTemplate.createCriteria()
              def results = c.list { eq('services', 'tid.2') }
  </code></pre>
  
  <p>but no luck...</p>