server/src/main/java/org/iri_research/renkan/controller/RenkanRootController.java
branchuser_management
changeset 224 0167b777ad15
parent 223 5ad314cb2337
--- a/server/src/main/java/org/iri_research/renkan/controller/RenkanRootController.java	Mon Oct 21 15:00:17 2013 +0200
+++ b/server/src/main/java/org/iri_research/renkan/controller/RenkanRootController.java	Mon Oct 21 17:55:12 2013 +0200
@@ -16,7 +16,7 @@
 import org.springframework.data.domain.Page;
 import org.springframework.data.domain.Pageable;
 import org.springframework.data.domain.Sort.Direction;
-import org.springframework.data.web.PageableDefaults;
+import org.springframework.data.web.PageableDefault;
 import org.springframework.http.HttpStatus;
 import org.springframework.stereotype.Controller;
 import org.springframework.ui.Model;
@@ -43,7 +43,7 @@
     @RequestMapping(value = "", method = RequestMethod.GET, produces = { "text/html;charset=UTF-8" })
     public String renkanIndex(
             Model model,
-            @PageableDefaults(sort = { "created" }, sortDir = Direction.DESC, pageNumber = 0, value = Constants.PAGINATION_SIZE) Pageable p,
+            @PageableDefault(sort = { "created" }, direction = Direction.DESC, page = 0, value = Constants.PAGINATION_SIZE) Pageable p,
             HttpServletRequest request) {
 
         Page<Space> page = this.spacesRepository.findAll(p);
@@ -60,7 +60,7 @@
     public ModelAndView spaceIndex(
             @PathVariable("space_id") String spaceId,
             @RequestParam(required = false) String filter,
-            @PageableDefaults(sort = { "updated", "created" }, sortDir = Direction.DESC, pageNumber = 0, value = Constants.PAGINATION_SIZE) Pageable p,
+            @PageableDefault(sort = { "updated", "created" }, direction = Direction.DESC, page = 0, value = Constants.PAGINATION_SIZE) Pageable p,
             HttpServletRequest request) {
 
         logger.debug("SpaceId : " + (spaceId == null ? "null" : spaceId));