code: public PaginatedList<Company> list(int page) {
  		PaginatedList<Company> results = new PaginatedList<Company>();
  		Criteria criteria = this.dao.newCriteria(Company.class).add(Restrictions.eq("deleted", false)).addOrder(Order.asc("name"));
  		if (page > 0)
  			criteria.setFirstResult((page-1) * PAGESIZE).setMaxResults(PAGESIZE);
  		Criteria counting = this.dao.newCriteria(Company.class).setProjection(Projections.countDistinct("id"))
  				.add(Restrictions.eq("deleted", false));
  		results.setList(this.dao.findByCriteria(criteria, Company.class));
  		results.setTotal((Long) counting.uniqueResult());
  		return results;
  	}
docs: Lista as companhias limitados a uma dada página
  
  @param page número da página a ser listada
  @return PaginatedList lista de companhias