您的位置:首页 > 移动开发

dictHsCode is not mapped

2016-01-28 23:03 344 查看
logger:

2016-01-26 11:22:16,812 [http-8080-2] ERROR [org.apache.jsp.WEB_002dINF.jsp.error.exception_jsp] - dictHsCode is not mapped[from dictHsCode t where 1=1 ];

nested exception is org.hibernate.hql.ast.QuerySyntaxException: dictHsCode is not mapped [from dictHsCode t where 1=1 ]

org.springframework.orm.hibernate3.HibernateQueryException: dictHsCode is not mapped [from dictHsCode t where 1=1 ];

nested exception is org.hibernate.hql.ast.QuerySyntaxException: dictHsCode is not mapped [from dictHsCode t where 1=1 ]

    at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:664)

异常原因:

在xxxDao里写的hql语句的表名要是映射的对应实体类的名称,而不是变量名的名称,也不是数据库里的表名。

参考网址:
http://blog.csdn.net/merry3602/article/details/7063226
http://blog.csdn.net/jsj_126abc/article/details/6582074
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: