title: how to insert list of values into datatable in spring hibernate
body: <p>I need to insert multiple rows of values into same table at a single submit.<img src="https://i.stack.imgur.com/t9ZUb.png" alt="enter image description here"></p>
  
  <p>In ajax </p>
  
  <pre><code>$("#btn_themDay").click(function(){
  $("#themDay_validation").hide();
  var no_row = Number($('#tbl_videoDetails').find("td.lastno").text());
  var videoDetails_valid = true;
  var name = new Array();
  var land = new Array();
  var area = new Array();
  var District = new Array();
  var thaluk = new Array();
  var i;
  
  for(i=1;i&lt;=no_row;i++){     // validdation 
      name[i]=$("#vodtitle"+i).val();
      land[i]=$("#vodtime"+i).val();
      area[i]=$("#voduploadImage"+i).val();
      District[i]=$("#vodurl"+i).val();
      thaluk[i]=$("#voddes"+i).val();
  
  $.ajax({
      url: "savefull",
      type: "POST",
      data: {values:name},
      traditional: true,
      dataType: "json",
      cache: false,
      success: function (data) {
  
      }
  });
  
  
  
  return false;   // for testing return false 
  </code></pre>
  
  <p>});</p>
  
  <p>I catch the data in controller like this</p>
  
  <pre><code>    @RequestMapping(value="savefull",method=RequestMethod.POST)
      public @ResponseBody ThematicDay savefull(@ModelAttribute("Data") Data values){
          try{
              System.out.print("Value "+values+"        ");
  
      }
      catch(Exception e)
      {
          e.printStackTrace();
      }
          return null;
  
      } 
  </code></pre>
  
  <p>But I don't know how to insert it in my dao using the hibernate query.</p>