title: Grails GORM: Change foreign key column name
body: <p>I'm trying to change the foreign key column name that is used in <code>Visitor</code> table for <code>User</code>'s id. The column is named now <code>user_id</code>, I want to change that to <code>who_id</code>.</p>
  
  <p><strong>Minimal <code>User</code> Domain Class:</strong></p>
  
  <pre><code>class User {
  
      static hasMany = [
          visitor: Visitor
      ]
  
      String uid
  
      ...
  
  }
  </code></pre>
  
  <p><strong>Minimal <code>Visitor</code> Domain Class:</strong></p>
  
  <pre><code>class Visitor {
  
    static belongsTo = [user: User]
  
    ....
  
  }
  </code></pre>
  
  <h1>Question:</h1>
  
  <p>I've tried with <code>mappedBy</code> but with no success, is there another way to use a property from <code>User</code> as a foreign key in <code>Visitor</code>?</p>