首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Hibernate建表异常,Could not determine type for: java.util.List

2012-09-01 
Hibernate建表错误,Could not determine type for: java.util.List今天遇到 Could not determine type for

Hibernate建表错误,Could not determine type for: java.util.List
今天遇到 Could not determine type for: java.util.List这个错误。

用hibernate 映射好好的竟然出现这个问题 。

我是使用注解来标注的映射关系

仔细查看代码后,发现有个注解写在了字段上,其他的都写在getter方法上。原因就在此:注解要么写在字段上,要么写在getter上,不能混合使用,否则会报这个错误。

热点排行