title: How to implement Self-Referencing Relationships in Grails?
body: <p>Given the following User class:</p>
  
  <pre><code>class User {
  
    String name
  
    static hasMany = [friends: User]
  }
  </code></pre>
  
  <p>I want that a User can have many friends which are instances of the user domain class.</p>
  
  <p>How do I have to implement the friend relationship of a user?</p>