Hibernate 中出现 XXXX is not mapped 问题
来源:互联网 发布:美军在二战的地位知乎 编辑:程序博客网 时间:2024/06/04 19:55
org.springframework.orm.hibernate4.HibernateQueryException: bookinfo is not mapped [delete from bookinfo where bid = 5]; nested exception is org.hibernate.hql.internal.ast.QuerySyntaxException: bookinfo is not mapped [delete from bookinfo where bid = 5] at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:175) at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:344) at org.springframework.orm.hibernate4.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:309) at org.springframework.orm.hibernate4.HibernateTemplate.bulkUpdate(HibernateTemplate.java:1096) 以下省略
转载来源:http://blog.csdn.net/mr_li13/article/details/50286055
解决方案:
最开始百度上面各种搜索,都是说可能配置文件那里什么什么错误的啊,但是我检查了很多遍都找不出来配置文件错误,最终终于在:http://blog.csdn.net/jsj_126abc/article/details/6582074 这里找到了我需要的答案!!!!!!
就是说在HQL里面查询的from表名要是你映射的对应实体类的名称,而不是你数据库里面的表名。
阅读全文
0 0
- Hibernate 中出现 XXXX is not mapped 问题
- Hibernate 中出现 XXXX is not mapped 问题
- Hibernate或者ssh三大框架中出现 XXXX is not mapped问题
- Hibernate 中出现 users is not mapped 问题
- SSH框架中hibernate 出现 user is not mapped 问题
- Hibernate 中出现 users is not mapped 问题
- Hibernate 中出现 users is not mapped 问题
- Hibernate 中出现 users is not mapped 问题
- SSHE框架中hibernate出现user is not mapped问题
- Hibernate 中出现 GOOD is not mapped 问题
- hibernate 出现 is not mapped 问题
- hibernate 出现***is not mapped
- hibernate:运行时出现user is not mapped问题
- 解决Hibernate使用HQL查询出现is not mapped问题
- Hibernate 中出现 QuerySyntaxException: users is not mapped
- Hibernate 中出现 xxx表 is not mapped xxx的问题
- 关于hibernate的is not mapped问题
- Hibernate XX is not Mapped问题笔记
- 大型网站架构系列:分布式消息队列(一)
- 关于事件点击后加.xxx的(如:click.ref)到底是什么意思呢
- js中number,math相关方法
- Sencha 6.2 modern环境搭建过程(Windows环境)
- 挑战程序竞赛系列(74):4.3强连通分量分解(1)
- Hibernate 中出现 XXXX is not mapped 问题
- Jzoj3192 球
- TP5 未定义变量:XXX
- WebService 超简单入门教程(Java)
- Hibernate HQL参数化查询,动态
- archivelogs文件清理及使用失效归档的删除
- RCNN论文详解(12)---《深度学习》
- serverlet07 表单的验证:客户端验证和服务器端验证
- effectivecpp读书笔记1