Код: Выделить всё
data: [{
key: "Group 1",
items: [ ... ],
count: 3,
},{
key: "Group 2",
items: [ ... ],
count: 9,
} ...]
Код: Выделить всё
public Page getReports(Integer skip, Integer take, String sortParams, String group) {
Pageable pageable = createPageable(skip, take, sortParams);
Specifications filters = (Specifications) getFilters();
return this.reportRepository.findAll(filters, pageable);
}
@Repository
public interface ReportRepository extends PagingAndSortingRepository, JpaSpecificationExecutor {
}
Подробнее здесь: https://stackoverflow.com/questions/572 ... pring-data