我用Criteria 查询Criteria cr=session.createCriteria(User.class);
cr.add(Restrictions.eq("name",user.getName()));
cr.add(Restrictions.eq("password", user.getPassword()));生成HQL语句Hibernate: select this_.id as id0_0_, this_.name as name0_0_, this_.password as password0_0_ from User this_ where this_.name=? and this_.password=?但提示java.sql.SQLException: 关键字 'User' 附近有语法错误。请问这是HQL语句有问题还是怎么样呢!!