PrepayEcRegister对象类中含有long handleAdminId属性,
查询数据库会抛出一下异常:
com.eidc.exception.DAOException: org.springframework.orm.hibernate3.HibernateSystemException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.eidc.pojo.ec.PrepayEcRegister.handleAdminId; nested exception is org.hibernate.HibernateException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.eidc.pojo.ec.PrepayEcRegister.handleAdminId。
但是将long handleAdminId修改成Long handleAdminId问题就解决了
这是为什么?