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.忘了配置GoodsInfo.hbm.xml文件,或者配置有错;
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.忘了配置GoodsInfo.hbm.xml文件,或者配置有错;