异常记录:org.springframework.orm.hibernate3.HibernateQueryException:PDIC_USER is not mapped [from PDIC_USER p where 1=1 ]; nested ex
来源:互联网 发布:act网络课程 编辑:程序博客网 时间:2024/06/07 20:15
org.springframework.orm.hibernate3.HibernateQueryException: PDIC_USER is not mapped [from PDIC_USER p where 1=1 ]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: PDIC_USER is not mapped [from PDIC_USER p where 1=1 ]
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:642)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
at org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:343)
问题原因:是用的是HQL语句,from PDIC_USER;//PDIC_USER是表名,而非实体对象名,原因在此!!
解决方法:HQL语句中 from PDIC_USER改为from PdicUser;//注意:PdicUser是对应PDIC_USER数据表的实体类名而非表名
- 异常记录:org.springframework.orm.hibernate3.HibernateQueryException:PDIC_USER is not mapped [from PDIC_USER p where 1=1 ]; nested ex
- org.springframework.orm.hibernate3.HibernateQueryException: teacherscore is not mapped
- 十二、org.springframework.orm.hibernate3.HibernateQueryException: Book is not mapped
- org.springframework.orm.hibernate3.HibernateQueryException:表名 is not mapped
- org.springframework.orm.hibernate3.HibernateQueryException: XXX is not mapped
- org.springframework.orm.hibernate3.HibernateQueryException: XXX is not mapped解决方案
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: where near line 1, col
- org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException:
- org.springframework.orm.hibernate3.HibernateQueryException 问题
- SSH org.springframework.orm.hibernate3.HibernateQueryException
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: * near line 1, column
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: 29 near line 1, column
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: xx near line 1, colum
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: 29 near line 1, column
- 异常积累:org.hibernate.hql.ast.QuerySyntaxError: User is not mapped. [from User where username=?]
- 异常:org.hibernate.hql.ast.QuerySyntaxException: EmpModel is not mapped [from EmpModel where name = ?
- 错误提示:org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: *
- org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: XXX的解决方案
- 使用asp.net发送邮件详解
- 达内——java变量
- 问题集锦(11-15)
- [CSS]On having layout [关于IE6 CSS的hasLayOut问题]
- 潘爱民::介绍一本关于ATL的书《ATL Internals》 ----转
- 异常记录:org.springframework.orm.hibernate3.HibernateQueryException:PDIC_USER is not mapped [from PDIC_USER p where 1=1 ]; nested ex
- 动软代码生成器 修改源码 (2010-3-13 更新 修改了DAL 层生成插件和BLL层代码生成插件 )
- Tomcat虚拟目录设置
- 编写NT服务程序
- FSDMGR Helper Functions for FSD Developers
- 硬盘安装RHEL方法
- DX步步为营(一)——D3D初始化步骤
- 09年上半年软考上午题第17/18题笔记
- 励志改变人生-励志日志