【Bug日常】 Admin(表名)is not mapped
来源:互联网 发布:淘宝助理官方下载 免费 编辑:程序博客网 时间:2024/06/07 14:49
严重: Exception occurred during processing request: Admin is not mapped [from Admin as ac where ac.adminname=? and ac.password=?]org.hibernate.hql.internal.ast.QuerySyntaxException: Admin is not mapped [from Admin as ac where ac.adminname=? and ac.password=?] at org.hibernate.hql.internal.ast.QuerySyntaxException.generateQueryException(QuerySyntaxException.java:96)。。。。。。
今天在用ssh框架写代码,在写HQL语句时一直报这个错误,提示表没有映射。
如果有同样的问题检查下面几个方面:
1. “from Admin as ac where ac.adminname=? and ac.password=?”,from 的实体类不是表名,而是Admin.java中类的名字,注意大小写。
2. 你的hibernate配置文件中没有加入相应的映射文件<
3. 如果不是的话,继续找其他地方类似的错误吧,我这就当提供一个思路了(●’◡’●)
0 0
- 【Bug日常】 Admin(表名)is not mapped
- org.springframework.orm.hibernate3.HibernateQueryException:表名 is not mapped
- org.hibernate.hql.internal.ast.QuerySyntaxException: Admin is not mapped [from Admin where username=
- "表名" si not mapped 问题
- table is not mapped
- Hibernate Is Not Mapped
- is not mapped 问题
- (Hibernate) is not mapped
- is not mapped [from
- is not mapped
- table is not mapped
- Hibernate - is not mapped
- dictHsCode is not mapped
- table is not mapped
- is not mapped [from ***]
- 错误:is not mapped
- is not mapped nhibernate
- Is Not Mapped
- STM32学习笔记3——怎样将整型变量转换为字符变量 然后串口 或者LCD发送出来(STM32) 以及sprintf的用法
- andriod 安装apk报错:[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
- configure: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!
- Java-Stack实现中序表达式求值
- Runnable , Callable 区别
- 【Bug日常】 Admin(表名)is not mapped
- 算法训练 表达式计算
- 40. Combination Sum II Medium
- 2017年4月21日 计算机技术动态
- postgre sql 学习
- Mac上安装MySQL后在终端连接不上数据库Command not found
- HDOJ--2037 今年暑假不AC
- C# 正则表达式
- 5天学会jaxws-webservice编程