Search in sources :

Example 1 with QueryResult

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;
}
Also used : QueryResult(org.nutz.dao.QueryResult) User(net.wendal.nutzdemo.bean.User) At(org.nutz.mvc.annotation.At)

Aggregations

User (net.wendal.nutzdemo.bean.User)1 QueryResult (org.nutz.dao.QueryResult)1 At (org.nutz.mvc.annotation.At)1