title: grails belongsTo map to property in another class
body: <p>I am having trouble grasping the concept of a belongsTo - hasMany relationship in Grails when the child class could belong to one of two properties in the parent (but not both).</p>
  
  <p>For instance:</p>
  
  <pre><code>class Store {
      Integer storeNumber
      List employees
      List managers
  
      static hasMany = [employees:Person,
                        managers:Person]
  }
  
  class Person {
      String name
      String roll
  
      static belongsTo = [store:Store]
  
      static constraints = {
          role inList: ['employee','manager']
      }
  }
  </code></pre>
  
  <p>Where Person is in either the list of Store.employees OR the list of Store.managers</p>
  
  <p>I am getting an error on Person having "Repeated column in mapping...".  I tried a few static mapping attempts, but still not understanding how to do it properly.  </p>
  
  <p>How do I properly map this?</p>
  
  <p>Thanks in advance....</p>