Hql检索遇到的的错误cannot define positional

String hql = "from User u where u.id=? and u.name=:name";hibernate不报错,String hql = "from User u where   u.name=:name
               and   u.id=?";hibernate会报
严重:   cannot define positional parameter after any named parameters have been defined
2009-4-16 15:00:33 org.hibernate.hql.ast.ErrorCounter reportError
严重:   right-hand operand of a binary operator was null

你可能感兴趣的:(Hql检索遇到的的错误cannot define positional)