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的主要内容,如果未能解决你的问题,请参考以下文章

Hibernate插入错误:GenericJDBCException: could not insert:

org.hibernate.exception.SQLGrammarException: could not execute query

[错误日志]Could not initialize class org.hibernate.validator.internal.engine.ConfigurationImpl

hibernate的Could not execute JDBC batch update错误原因及处理

解决org.hibernate.exception.SQLGrammarException:could not insert

org.hibernate.exception.ConstraintViolationException: could not insert: