title: how to save values from one class object to another class object
body: <p>I have two classes(Pojos) name <code>Soldbookdetails.java</code> and <code>Bookdetails.java</code>, 
  what I want to do is, I have to get  data from Bookdetails table(<code>Soldbookdetails.java</code>)  and save the same  data to my Soldbookdetails table(<code>Soldbookdetails.java</code>). </p>
  
  <p><strong>ActionClass.java</strong></p>
  
  <pre><code>private Double[] id;//With getter and setter
  private Double[] quantity;  //With getter and setter
  Bookdetails book=new Bookdetails();//pojos,//With getter and setter
  Soldbookdetails sbook=new Soldbookdetails();//pojos,//With getter and setter 
  BookdetailsDAO dao=new BookdetailsDAO(); 
  SoldBooksTransactionDAO dao2=new SoldBooksTransactionDAO(); 
  ------------
  </code></pre>
  
  <p>(Note: <em>my both pojo are same only their Class name are different</em>)</p>
  
  <p><strong>My problem</strong>: I am unable to save record from <code>Bookdetails.java</code> to <code>Soldbookdetails.java</code> .(See My above <code>ActionClass.java</code> class,inside the  execute method , i have mention  the ERRROR).</p>
  
  <p>After getting record by Bookid , i am unable to save the record into my <code>Soldbookdetails.java</code>.</p>
  
  <p>Please help me to solve my problem.</p>