title: one to many mapping in hibernate spring mvc +jsp
body: <p>I want to use hibernate one-to-many mapping for spring mvc web application.I have two entity classes Project and Site.</p>
  
  <pre><code>    Class Project{
  
  private String pid;
  ........
  protected Set&lt;Site&gt; site;
  
  //getter and setter
  
  }
  
  Class Site{
  
  private String siteid;
  private String name;
  .................
  //getter and setter
  }
  </code></pre>
  
  <p>My question is how to add multiple site for one project in jsp. and save to both table at a time.How to achieve this in jsp.</p>