title: serializable string in hibernate save(Object entity, Serializable id)
body: <p>I want to persist using a specific id-
  String tdsSubmissionId; Myclass myclass;
  this.hibernateTemplate.save(myclass, tdsSubmissionId);</p>
  
  <p>using this signature- save(Object entity, Serializable id)</p>
  
  <p>but I get the error-
  the method save(String, Object)  is not applicable for the arguments (Myclass, String) </p>
  
  <p>Seems like it's being autotyped incorrectly. How can I fix it? Thanks.</p>