org.springframework.orm.hibernate3.HibernateSystemException: Null value was assigned to a property o



org.springframework.orm.hibernate3.HibernateSystemException: Null value was assigned to a property o

hibernate 问题…….
1、是否在sessionFactory配置中加入映射文件:如<value>com/hycrm/bean/Productcate.hbm.xml</value>
2、将出错的字段在对应的类中有原始类型转换成包装类型。