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 应该是实体类名而不是表名。总的来说就是实体类名没写对的错误。
你的日积月累迟早会成为别人的望尘莫及。