java.sql.SQLException: The value supplied cannot be converted to BIGINT.

解决方案 »

  1.   

    你好!这里是Hibernate的映射文件     <property name="status" type="java.lang.Long">
                <column name="Status" />
            </property> 数据库是对应的是numberic 我用的是SQLSERVER2008,然后执行了一个存储过程返回了它的结果集,
     cs =conn.prepareCall("{call allArticalInfo(?)}");
     cs.setString(1, cataloginnercode);
            //执行存储过程   
            cs.execute();      
            rs = cs.getResultSet();
    hc.setStatus(rs.getLong(15)); 然后就报错误了
      

  2.   

    hc.setStatus(rs.getLong(15)); 然后就报错误了那你就要看看记录集的15位置是不是这个字段