org.hibernate.hql.ast.QuerySyntaxException: Person is not mapped
来源:互联网 发布:免费家谱制作软件 编辑:程序博客网 时间:2024/06/05 09:41
org.hibernate.hql.ast.QuerySyntaxException: Person is not mapped [select o from Person o.....
Spring+struts+JPA
发生这个错误除了其他人所说hibernate配置之类的错误外(没有用到hibernate,使用JPA),也有可能是因为实体类Person没有使用@Entity来标注;
根据JPA规范,需要将Person类加上标注@Entity,通过这个注解,指明Person为实体类。
- org.hibernate.hql.ast.QuerySyntaxException: Person is not mapped
- 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.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解决办法
- org.hibernate.hql.ast.QuerySyntaxException:is not mapped 异常总结
- org.hibernate.hql.ast.QuerySyntaxException: Article is not mapped.
- org.hibernate.hql.ast.QuerySyntaxException: is not mapped 异常总结
- [leetcode] simplify path
- linux I2C设备那点事之I2C设备理论篇
- 网络编程socket实例
- Openstack中的测试 ( by quqi99 )
- 超越虚拟化 成就信息化产品
- org.hibernate.hql.ast.QuerySyntaxException: Person is not mapped
- 网络编程列表
- XAF - 审批流
- GVIM 配色
- 该用行内还是块级?
- listView 属性
- 关于ubuntu的root密码问题
- 集合小知识
- c# 执行多条SQL语句,实现数据库事务 线性表 Hashtable