Esempio n. 1
0
  public Page<Customer> find(Map<String, Object> searchParams, int page, int size, String sort) {
    Pageable pageable = JPAUtil.buildPageRequest(page, size, sort);
    Specification<Customer> spec = JPAUtil.buildSpecification(searchParams);

    return getDao().findAll(spec, pageable);
  }