org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User].
来源:互联网 发布:能讲课的软件 编辑:程序博客网 时间:2024/06/10 06:01
错误原因:
1.from后跟实体类名(注意大小写)
2.hbm文件是否导入(数据库对应表产生的话可以排除)
3.在对应hbm文件中是否使用了auto-import=false如果用了就会导致mapping错误(本人遇到了,查了半天,切记!!!)
-----
fornane
- Hibernate异常: org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]
- org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User].
- org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User] 异常总结
- org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User] 异常总结
- Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User
- org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]
- org.hibernate.hql.internal.ast.QuerySyntaxException: USER is not mapped 报错解决
- 异常积累:org.hibernate.hql.ast.QuerySyntaxError: User is not mapped. [from User where username=?]
- SSH报错:org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [select o from User o where 1=1
- 使用hibernate的hql语句做查询报错 org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped
- nested exception is org.hibernate.hql.ast.QuerySyntaxException: users is not mapped. [from users]
- nested exception is org.hibernate.hql.ast.QuerySyntaxException: Product is not mapped [from Product]
- org.hibernate.hql.ast.QuerySyntaxException is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: myaddressbook is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: Enroll is not mapped.
- org.hibernate.hql.ast.QuerySyntaxException: ? is not mapped
- org.hibernate.hql.ast.QuerySyntaxException:is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: is not mapped 异常总结
- JSP传参数给Birt的两种方法
- Nginx 安装笔记(含PHP支持、虚拟主机、反向代理负载均衡)
- 整数划分
- 全面认识APM和ACPI
- 构建powerpc交叉编译环境
- org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User].
- JAVA运行环境搭建及注意事项
- android linearlayout 平分一行
- IAR调试S3C6410的笔记(四)
- i386的段机制
- 用 XHR + curl.exe 制作 ddns 客户端札记
- 简单的老虎机游戏——777(js)
- Strategy
- flex4 is really is slow than flex3