hibernate
harper_wang
热爱技术,热爱生活
展开
-
unexpected token: * near line 1, column 8 [select * from tb_cat]
unexpected token: * near line 1, column 8 [select * from tb_user] 这个错误可能是因为以下原因导致: 1.在hibernate里面写sql执行时候要用了session.createQuery(sql); 需要用session.createSQLQuerysql); 2.在hibernate里面写hql执行原创 2013-01-08 15:16:24 · 14021 阅读 · 2 评论 -
tb_cat is not mapped [ select c from tb_cat c ]
Caused by: org.hibernate.hql.ast.QuerySyntaxException: tb_cat is not mapped [ select c from tb_cat c ] 有可能是以下的原因导致Exception: 1. HQL语句有错:HQL语言要面向对象 tb_cat.java实体类进行操作,不是数据库表名,或者实体类写错; 2.忘了配置Goods原创 2013-01-08 16:04:06 · 628 阅读 · 0 评论