Spring Data Core

org.springframework.data.web
Annotation Type PageableDefaults


Deprecated. use PageableDefault instead.

@Documented
@Retention(value=RUNTIME)
@Target(value=PARAMETER)
@Deprecated
public @interface PageableDefaults

Annotation to set defaults when injecting a Pageable into a controller method.

Author:
Oliver Gierke

Optional Element Summary
 int pageNumber
          Deprecated. The default-pagenumber the injected Pageable should get if no corresponding parameter defined in request (default is 0).
 String[] sort
          Deprecated. The properties to sort by by default.
 Sort.Direction sortDir
          Deprecated. The direction to sort by.
 int value
          Deprecated. The default-size the injected Pageable should get if no corresponding parameter defined in request (default is 10).
 

value

public abstract int value
Deprecated. 
The default-size the injected Pageable should get if no corresponding parameter defined in request (default is 10).

Default:
10

pageNumber

public abstract int pageNumber
Deprecated. 
The default-pagenumber the injected Pageable should get if no corresponding parameter defined in request (default is 0).

Default:
0

sort

public abstract String[] sort
Deprecated. 
The properties to sort by by default. If unset, no sorting will be applied at all.

Returns:
Default:
{}

sortDir

public abstract Sort.Direction sortDir
Deprecated. 
The direction to sort by. Defaults to Sort.Direction.ASC.

Returns:
Default:
org.springframework.data.domain.Sort.Direction.ASC

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.