首页 > 移动平台 > 详细

Unknown entity: org.hibernate.internal.CriteriaImpl; nested exception is org.hibernate.MappingException: Unknown entity: org.hibernate.internal.CriteriaImpl

时间:2019-06-09 09:39:37      阅读:165      评论:0      收藏:0      [点我收藏+]

一开始以为时没找到映射文件,后来发现是Dao写的有问题

getHibernateTemplate().delete()参数是一个pojo的实例,我传入的对象不对导致出现了问题

技术分享图片

最后改成如下,在delete()里传入实例

技术分享图片

Unknown entity: org.hibernate.internal.CriteriaImpl; nested exception is org.hibernate.MappingException: Unknown entity: org.hibernate.internal.CriteriaImpl

原文:https://www.cnblogs.com/King-Jin/p/10992405.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!