Commit c256125d authored by Anton Sudak's avatar Anton Sudak

Fix typo in fetching db results

parent a49cc602
......@@ -61,7 +61,7 @@ public abstract class AbstractDatatableService<T> {
String searchQuery = request.getQueryString(DATATABLE_SEARCH_QUERY);
int sortColumn = Integer.parseInt(request.getQueryString(DATATABLE_SORT_COLUMN_POSITION));
String sortingDirection = request.getQueryString(DATATABLE_SORT_DIRECTION);
int totalCountFiltered = countByKeywords(searchQuery, orderByFields.get(sortColumn), sortingDirection).getFirstResult();
long totalCountFiltered = countByKeywords(searchQuery, orderByFields.get(sortColumn), sortingDirection).getSingleResult();
TypedQuery<T> findQuery = findByKeywords(searchQuery, orderByFields.get(sortColumn), sortingDirection);
if (pageSize > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment