org.hibernate.hql.internal.ast.QuerySyntaxException: Admin is not mapped [from Admin where username=



严重: Exception occurred during processing request: Admin is not mapped [from Admin where username=:username and userpwd=:password]
org.hibernate.hql.internal.ast.QuerySyntaxException: Admin is not mapped [from Admin where username=:username and userpwd=:password]
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110)
at org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:93)
at org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:324)

at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3420)



copy的code,根本就没有Admin这个对象。明明是User

你可能感兴趣的:(java)