title: groovy static blocks for relationship definition
body: <p>I have a couple of domain classes defined, Employee and EmployeeDesiredSkill,</p>
  
  <p>Employee has </p>
  
  <pre><code> static hasMany = [employeeSkill:EmployeeDesiredSkill]
  </code></pre>
  
  <p>and EmployeeDesiredSkill has</p>
  
  <pre><code>static belongsTo = [employee:Employee]
  </code></pre>
  
  <p>Yet groovyc is giving me a bunch of errors like the following:</p>
  
  <pre><code>[groovyc] Compiling 15 source files to C:\dev\JavaTest\target\classes
  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  [groovyc] C:\dev\JavaTest\grails-app\domain\javatest\Employee.groovy: 6: Apparent   variable 'EmployeeDesiredSkill' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
  [groovyc] You attempted to reference a variable in the binding or an instance variable from a static context.
  [groovyc] You misspelled a classname or statically imported field. Please check the spelling.
  [groovyc] You attempted to use a method 'EmployeeDesiredSkill' but left out brackets in a place not allowed by the grammar.
  [groovyc]  @ line 6, column 44.
  [groovyc]    ny = [employeeDesiredSkills : EmployeeDe
  [groovyc]                                  ^
  </code></pre>
  
  <p>What does this mean exactly? Its like it doesnt realize EmployeeDesiredSkill is a domain class</p>