/** {@inheritDoc} */ @Override public List<? extends Object> getList() { if (query == null) { return null; } else { applySorting(query); Query q = applyFilters(query); if (table.getPagingEnabled()) { q.setFirstRow((table.getCurrentPage() - 1) * table.getEntriesPerPage()); q.setMaxRows(table.getEntriesPerPage()); } return q.findList(); } }