goja-web/src/main/java/goja/mvc/datatables/DTCriterias.java
public DTResponse response(Class<? extends Model> model) {

        Preconditions.checkNotNull(this, "datatable criterias is must be not null.");
        final Page<Record> datas = DTDao.paginate(model, this);
        return DTResponse.build(this, datas.getList(), datas.getTotalRow(), datas.getTotalRow());
    }
public DTResponse response(Class<? extends Model> model) {

        Preconditions.checkNotNull(this, "datatable criterias is must be not null.");
        final Page<Record> datas = DTDao.paginate(model, this);
        return DTResponse.build(this, datas.getList(), datas.getTotalRow(), datas.getTotalRow());
    }
Support for a single entity with the integration of Datatables plugin。

@param model The DB model.
@return response.