public List<Contact> findPageByCompanyAndName(Company company, String filter, int firstrow, int maxrows) { return repository.findByCompanyAndNameLikeIgnoreCase(company, "%" + filter + "%").firstResult(firstrow).maxResults(maxrows). getResultList(); }