hibernate5 报错org.hibernate.boot.MappingException: Association [XX] references an unmapped entity

1 具体报错:

Caused by: org.hibernate.boot.MappingException: Association [cn.com.pojo.bbs.TBasHousePrivate.topics] references an unmapped entity [cn.com.pojo.bbs.TBasHousePrivate.topics] : origin(cn/com/pojo/bbs/TBasHousePrivate.hbm.xml)

这里写图片描述

2 可能原因:

cn/com/pojo/bbs/TBasHousePrivate.hbm.xml文件中class中name映射的实体类不存在

相关文章

相关标签/搜索