标签:javaee
Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User user where user.name=?0 and user.pass=?1]at com.login.hibernate.HqlQuery.main(HqlQuery.java:27)
其实错误提示说得很清楚了,就是没有添加映射,只要在src下的hibernate.cfg.xml中增加相应类的映射即可。
Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User
标签:javaee
原文地址:http://blog.csdn.net/bettarwang/article/details/42889081