Query q = session.createQuery("from Requests as rq where rq.status = :status" +
" and rq.tagNumber like :tagNumber");
q.setString("status", status);
q.setString("tagNumber", projectName + "%");
" and rq.tagNumber like :tagNumber");
q.setString("status", status);
q.setString("tagNumber", projectName + "%");