org.hibernate.hql.ast.QuerySyntaxException per is not mapped [from Per as p]
来源:互联网 发布:mac好用的解压缩软件 编辑:程序博客网 时间:2024/06/11 19:47
org.hibernate.hql.ast.QuerySyntaxException per is not mapped [from Per as p]
1.hql语句查寻的是javabean 与javabean名字相同,注意大小写!
2.hibernate.cfg.xml中要有<mapping resource="bbs/BBSManager.hbm.xml" />之类的语句
注意:from Per as p 中的Per是持久类名称而不是实际数据中表的名称!
1、持久类写错了,要不就是写成了数据库表名
2、hibernate3.0不支持select中嵌套查询,据说from中也不行,只支持where中嵌套查询,好像3.1支持了select中嵌套
3、sql语句中字段是用了保留关键字
- org.hibernate.hql.ast.QuerySyntaxException per is not mapped [from Per as p]
- 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 异常总结
- org.hibernate.hql.ast.QuerySyntaxException: is not mapped 异常总结 .
- org.hibernate.hql.ast.QuerySyntaxException is not mapped异常
- org.hibernate.hql.ast.QuerySyntaxException: Person is not mapped
- org.hibernate.hql.internal.ast.QuerySyntaxException: Exam is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: UserType is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: **** is not mapped 异常总结
- org.hibernate.hql.ast.QuerySyntaxException: is not mapped
- org.hibernate.hql.ast.QuerySyntaxException:XX is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: is not mapped解决办法
- DyninstAPI使用(求助!)
- C# 中堆栈,堆,值类型,引用类型的理解 (摘抄)
- 从《龙之战》想起
- 用于层次查询的伪列和函数
- 清明上河图之城管来了
- org.hibernate.hql.ast.QuerySyntaxException per is not mapped [from Per as p]
- SQL Server 优化整理
- 带地名的歌
- 用PowerShell删除所有指定类型的文件
- 轻松黑掉别人的网站!
- LINUX系统中动态链接库的创建与使用
- 软件检查点
- 内存的发展历史 艾高 电脑 威刚 内存 配件
- "浙大女"发帖挑战最牛愤青教授 称宁嫁美国黑人