hibernate查询数据,(user is not mapped)

错误信息:java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException:

                user is not mapped [from user where username=? and password=? 

User 应该是实体类名而不是表名。总的来说就是实体类名没写对的错误。

posted @ 2017-12-19 23:47  微尘chq  阅读(230)  评论(0编辑  收藏  举报