title: Grails hasOne association
body: <p>What is the difference between these 2 hasOne syntax ?</p>
  
  <pre><code>class Project {
  .......
  ............
      static hasOne = Employee
  
    //  static hasOne = [employee:Employee]
  }
  </code></pre>
  
  <p>I have noticed that the first one creates a many-to-many relationship(3 tables) but it should be many-to-one(2 tables) as in the Employee class I have:</p>
  
  <pre><code>static hasMany = [projects:Project]
  </code></pre>
  
  <p>The second one works fine:</p>
  
  <pre><code>static hasOne = [employee:Employee]
  </code></pre>
  
  <p>I am using Grails 2.2.0 and I even tried in Grails 2.0.3 but the result is same.</p>
  
  <p>Thanks</p>