Spring Data Commons

org.springframework.data.web
Annotation Type PageableDefaults


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

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

Author:
Oliver Gierke

Optional Element Summary
 int pageNumber
          The default-pagenumber the injected org.synyx.hades.domain.Pageable should get if no corresponding parameter defined in request (default is 0).
 int value
          The default-size the injected Pageable should get if no corresponding parameter defined in request (default is 10).
 

value

public abstract int value
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
The default-pagenumber the injected org.synyx.hades.domain.Pageable should get if no corresponding parameter defined in request (default is 0).

Default:
0

Spring Data Commons

Copyright © 2011. All Rights Reserved.