读书人

招致org.hibernate.PropertyAccessExc

发布时间: 2012-08-28 12:37:01 作者: rapoo

导致org.hibernate.PropertyAccessException:的可能原因

1、类型错误:例:Integer写成int

2、参数名称错误:大小写没有写对

3、1对多集合映射时,pojo中的集合时List对象,配置文件中确是对set集合的配置

?????

<key column="projectId" ></key>
<!-- report_time 字段用来记录 保存的数据的顺序 根据报告时间-->
<index column="report_time" type="java.util.Date"></index>
<one-to-many />
</list>

?

读书人网 >Access

热点推荐