hibernate 错误 could not determine type for

Posted 小狮子001

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hibernate 错误 could not determine type for相关的知识,希望对你有一定的参考价值。

今天配置实体类注解时,出现以下错误:

org.hibernate.MappingException: Could not determine type for: com.oneToOne.IdCard, at table: T_Students, for columns: 
解决方案:注解要么写在字段上,要么写在getXX上,千万千万不能混合使用,否则会报这个错误!


以上是关于hibernate 错误 could not determine type for的主要内容,如果未能解决你的问题,请参考以下文章