hibernate - error - org.hibernate.MappingException

Caused by: org.hibernate.MappingException: Could not determine type for:

 

当出现这种错误时,原因由于 @oneToMany 和 @manyToOne 标注没有标注在 getter方法上,而是标注在了 字段上.

 

参考:

https://forum.hibernate.org/viewtopic.php?p=2429269

你可能感兴趣的:(Hibernate)