ERROR:org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped [from user]

ERROR:org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped [from user]
错误信息:user不匹配

原因:hql语句有误。“from User" User是映射数据库里面表的类名,不是数据库的表名。

贴上百度经验一条,链接如下:

 

posted @ 2016-04-18 09:56  Dobic  阅读(205)  评论(0编辑  收藏  举报