title: How to make Play create a new ID(auto increment) when doing a merge with existing object
body: <p>Right now I'm doing this but it seems to not work right.  Thanks for any help.  </p>
  
  <pre><code>   public static void submit(@Valid WrapSpec wrapSpec) { 
          if (validation.hasErrors()) { 
              render("@index", wrapSpec); 
          } 
   JPA.em().detach(wrapSpec); 
              wrapSpec.wrapSpecId = null; 
              WrapSpec wrapSpecNew = wrapSpec.merge(); 
  } 
  </code></pre>