public static < T > Query < T > queryWithPage ( ExpressionList < T > expressionList , Pageable pageable ) { Assert . notNull ( expressionList , "expressionList must not null" ) ; Assert . notNull ( pageable , "pageable must not null" ) ; return expressionList . setMaxRows ( pageable . getPageSize ( ) ) . setFirstRow ( ( int ) pageable . getOffset ( ) ) . setOrder ( Converters . convertToEbeanOrderBy ( pageable . getSort ( ) ) ) ; }
Return query specifying page .