public List<Resource> getResourceList() { QueryAppender appender = new QueryAppender(); appender.asc("resource.code"); return resourceDao.find(appender); }
public Page<Resource> getResourcePage(Page<Resource> page) { QueryAppender appender = new QueryAppender(); appender.asc("resource.code"); return resourceDao.findPage(page, appender); }