if(pageNumber == null){ pageNumber = DEFAULT_PAGE_NUMBER;}\r
if(pageSize == null){ pageSize = DEFAULT_PAGESIZE;}\r
\r
- return (Pager<T>) service.list(type, pageSize, pageNumber, null, DEFAULT_INIT_STRATEGY);\r
+ return service.page(type, pageSize, pageNumber, null, DEFAULT_INIT_STRATEGY);\r
}\r
+ \r
+ /**\r
+ * Parameter less method to be used as default when request without parameter are made. Otherwise\r
+ * the nameless methods {@link #doPage(Integer, Integer, Class)} and {@link #doList(Integer, Integer, Class)}\r
+ * are ambigous.\r
+ * @return\r
+ */\r
+ @RequestMapping(method = RequestMethod.GET)\r
+ public Pager<T> doPage(){\r
+ return doPage(null, null, null);\r
+ }\r
+ \r
/**\r
* @param start\r
* The offset index from the start of the list. The first entity\r
//if(start == null){ start = 0;}\r
if(limit == null){ limit = DEFAULT_PAGESIZE;}\r
//TODO implement initialization\r
- return service.list(type, limit, start, null,null);\r
+ return service.list(type, limit, start, null, DEFAULT_INIT_STRATEGY);\r
}\r
\r
/* TODO \r