title: java.lang.Long cannot be cast to java.math.BigDecimal
body: <p>Db table information:</p>
  
  <pre><code>fid [NUMBER(32,0)PK]
  status [VARCHAR2(10)]
  </code></pre>
  
  <p>DAO class:</p>
  
  <pre><code>public Integer Update_bank_dep(Long fid, String status) {
      try {
          String query       = "update WtrBnkdep as wb set wb.wtrbdStus=:status where wb.wtrbdUniqval=:fid";
          Query  queryobject = get_session().createQuery(query);
  
          queryobject.setParameter("fid", fid);
          queryobject.setParameter("status", status); 
          int cd = queryobject.executeUpdate();
          System.out.println("cd=" + cd);
  
          return cd;
      } catch(RuntimeException ex) {
          System.out.println("Error="+ex);
          throw ex;
      }
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Error=java.lang.ClassCastException: java.lang.Long cannot be cast to java.math.BigDecimal
  </code></pre>