title: Grails create criteria not in list
body: <p>how to get list A where not use in domain B?</p>
  
  <p>Domain A</p>
  
  <pre><code>Class A{
  String name
  String code
  }
  </code></pre>
  
  <p>Domain B</p>
  
  <pre><code>Class B{
  A aaa
  String description
  }
  </code></pre>
  
  <p>example data:</p>
  
  <pre><code>**domain A**
  
  id+versioin+name   +code+|
  1 | 0      |Bobby  |bob  |
  2 | 0      |anto   |ant  |
  3 | 0      |Jessica|jes  |
  4 | 0      |hera   |her  |
  
  **domain B**    
  id+version|a_id|description + |
  1 | 0     | 1  |this is bobby |
  2 | 0     | 3  |this is jessic|
  </code></pre>
  
  <p>how can i get list from A where not used in B.</p>
  
  <pre><code>i tried this
  def b = B.list()
  def c = A.createCriteria()
  def results = c.list {
      not { 'in'(b) }
  }
  </code></pre>
  
  <p>but fail..</p>