title: Netbeans annotations in generated sources
body: <p>I am using <code>NetBeans 8.2.</code></p>
  
  <p>I have generated some java sources using <strong>JaxB</strong> and <strong>xsd</strong> schema that was provided to me. </p>
  
  <p>(by the way the <code>xsd</code> schema is given and should not change)</p>
  
  <p>Now in order to be able to marshal objects into <code>xml</code> properly (e.g to have a correct timestamp format) I had to add some annotations to the generated sources  like the following </p>
  
  <pre><code> @XmlJavaTypeAdapter(DateTimeAdapter.class)
      protected XMLGregorianCalendar timestamp;
  </code></pre>
  
  <p>Everything runs smoothly.  </p>
  
  <p>However, the problem is that on clean and build all the generated files are regenerated anew and added annotations are lost. </p>
  
  <p>What can I do, so that either:  </p>
  
  <ol>
  <li>clean and build will leave generated sources untouched </li>
  </ol>
  
  <p><strong>or</strong> </p>
  
  <ol start="2">
  <li>needed annotations are automatically inserted into generated files after clean and build ? </li>
  </ol>