org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped hibernate 注解出错
来源:互联网 发布:云计算的前景 编辑:程序博客网 时间:2024/04/30 15:39
当出现 org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped
发现为注解有错.
@Entity(name="TB_RESOURCE")@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)public class Resource {}
getHibernateTemplate().find("FROMResource resource WHERE resource.type = ?", "URL");
上面两处红色标记没对应.
@Entity
POJO用@Entity进行实体注释
@Table
@Table是类的一级注释,通过它可用为实体指定表(Table),目录(Catalog),和schema的名字,如果没有@Table,那么系统自动使用默认值:实体的短类名(不带包名)
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped hibernate 注解出错
- org.hibernate.hql.ast.QuerySyntaxException:XX is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped !
- spring&org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped !
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- 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 异常总结 .
- BSTR,_bstr_t
- SQL Server中查询某列所在的数据库中所在的表
- “显示表面”初窥
- Renaming an SVN(Subversion) Repository
- poj3268---spfa
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped hibernate 注解出错
- 如何在Eclipse中查看JDK类库的源代码
- ExtJS Grid中文字链接点击事件的更合理的处理办法
- usb probe
- Silverlight写错误日志
- 在Fedora14系统上挂载A8 开发版 详细过程 及问题解决 (接上篇,nfs挂载步骤之二)
- C#简单的记录
- 查询整个数据库中某个特定值所在的表和字段的方法
- struts-config.xml配置文件