"table" is not mapped 解决方法
来源:互联网 发布:C语言send函数格式 编辑:程序博客网 时间:2024/05/29 12:34
现象:
使用hql="from person" 出现" person is not mapped " 错误
配置文件如下:
<hibernate-mapping>
<class name="包名.Person"
table="person">
<id name="name"/>
<property name="password"/>
</class>
</hibernate-mapping>
原因:
hql是写的是PO对象,不是table名
故改为配置文件中的红色部分的类名即可。
例如:
数据库表名:person
VO类名:Person
则HQL语句: From Person(PO对象) as p
- "table" is not mapped 解决方法
- "table" is not mapped 解决方法
- table is not mapped
- table is not mapped
- table is not mapped
- 报错:table is not mapped……
- org.hibernate.hql.internal.ast.QuerySyntaxException: table is not mapped
- 关于Hibernate报错 “table” is not mapped
- table not mapped [
- hibernate xxx is not mapped 错误原因及解决方法
- Hibernate Is Not Mapped
- is not mapped 问题
- (Hibernate) is not mapped
- is not mapped [from
- is not mapped
- Hibernate - is not mapped
- dictHsCode is not mapped
- is not mapped [from ***]
- 简单的隶属度函数
- 大家好!
- 文件上传下载
- 从入门到精通:学C++必看的十本最经典书籍
- 终端访问的小小配置
- "table" is not mapped 解决方法
- VC2010 配置OpenGL环境
- 牛逼的google,太有意思了~~~~~~
- android:使用SQLite的Blob储存.mp3档案
- SimpleDateFormat 12小时制和24小时制的区别
- 解答:出现0x7c812aeb处最可能的异常: Microsoft C++ 异常: 内存位置 0x0012feb4 处的 cudaError_enum
- formula YUV2RGB RGB2YUV
- 信息社会主义
- 百度的关键词库,词汇的精准定义与排序