title: How to copy a row and past in different table using HQL
body: <p>Table name:- main</p>
  
  <pre><code>id | Code | Name |  total  
  -------------------------
  01 | m-01 | bag  | 6    |
  02 | m-02 | pen  | 3    |
  03 | m-01 | bag  | 4    |
  </code></pre>
  
  <p>Table name:- duplicate</p>
  
  <pre><code>id | Code | Name | total  
  ------------------------
  01 | m-01 | bag  | 6   |
  03 | m-01 | hen  | 4   |
  </code></pre>
  
  <p>Here I want select row where code is 'm-01' and past into another Table whose name is duplicate.
  I am using JDK Compliance </p>
  
  <blockquote>
    <p>JavaSE-1.8</p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>JavaEE IDE</p>
  </blockquote>
  
  <p>I Use it but get error in run time.</p>
  
  <blockquote>
    <p>BeanUtils.copyProperties(source, destination);//but get sum error.</p>
  </blockquote>