use of org.nutz.dao.QueryResult in project nutz by nutzam.
the class UserModule method list.
@At
public QueryResult list(@Param("..") Pager pager) {
List<User> users = dao.query(User.class, null, pager);
pager.setRecordCount(dao.count(User.class));
QueryResult qr = new QueryResult(users, pager);
return qr;
}
Aggregations