Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table:

今天在做DAO的Unit Test时,出错如下:
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: REPS_SLA_VERSION, for columns: [org.hibernate.mapping.Column(slaItemList)]

 

在google上找了一会,发现能解决我的问题的帖子:http://microblog.javaeye.com/blog/324702

结论:用注解标注的映射关系 要么写在字段上,要么写在getter上,不能混合使用,否则会报错。

 

posted on 2010-02-26 17:39  leonzhan  阅读(2882)  评论(0编辑  收藏  举报

导航