映射問題:
org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped [from user where username=? and password=?] 這是什么問題??user是表的名字還是類的名字??
org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped [from user where username=? and password=?] 這是什么問題??user是表的名字還是類的名字??
2015-11-26
舉報
2015-12-15
你用的是session.createQuery還是session.createSQLQuery?前者用的是類名,后者是表名