title: Java CodeModel: annotation with class as value - class not on classpath
body: <p>I need to generate code and in this case annotations using suns CodeModel library. The annotations value is a Class object. However that class is not known at compile time. The solution I have now is:</p>
  
  <pre><code>JAnnotationUse oneToMany = field.annotate(OneToMany.class)
      .param("targetEntity", Class.forName(className);
  </code></pre>
  
  <p>However this obviously requires that the according class is on the classpath. I want to avoid the user having to deal with such issues. </p>
  
  <p>Of course the other option would be to generate the java source code file and manipulate it afterwards (as pure string) but that seems very messy.</p>
  
  <p>Is there any way with CodeModel to use the plain string className + ".class" instead?</p>