If you use hibernate 3 ,you must run following statment as update statment:
Query query=hibernateSession.query("Update Bill b set b.status=? where b.id > ?");query.setInteger(1);query.setInteger(1000);query.list();