Questions tagged [pageable]
104 questions
0
votes
2 answers
ERROR: syntax error at or near "." - JPA Pageable
repository:
@Repository
public interface PostRepository extends PagingAndSortingRepository {
@Query(value = "SELECT p.postComments FROM Post p WHERE p.webId = ?1")
Page findCommentsByWebId(String webid, Pageable…

moze
- 322
- 1
- 5
- 14
0
votes
1 answer
Paged blobs from azure storage
I am curently trying to get a list of paged blobs from azure, but I don't really know how and I am kind of stuck. I have this method that is Pageable (it acces the blobs for a specific student, based on the id).
public Pageable…

CuriousCat11
- 39
- 6
0
votes
0 answers
Springboot Pageable with Specification JPA problem
i have a data problem for my code:
PeopleSpec peopleSpec = new PeopleSpec(req.getSearchFilters(), jsonReqRes.getOrder());
int currentPage = req.getCurrentPage() - 1;
int elementForPage = req.getElementForPage() > 0 ?…

Alex
- 111
- 1
- 13
0
votes
1 answer
How to map from Page to Page in Spring Data 2?
I'm looking at some old code and I'm trying to re-write it however I encountered a problem.
This is the old code that works perfectly fine:
public Page search(String text, int pageNumber) {
PageRequest request =…

JustQuest
- 249
- 4
- 15
0
votes
1 answer
Spring application using Pageable always returns the same result from page 2
I'm using spring to develop an application using sqlite as a database, but I'm having a problem implementing pagination in the repository's findAll(Pageable pageable) method.
For this implementation I'm using Pageable, and the problem is that, from…

Nuno Rolo
- 25
- 8
0
votes
1 answer
not able to parse pageable response array to dto in java
I am working on a spring boot app where I am getting pageable response and then I want to take that pageable response array to parse it to a list of some DTO.
Here's my function:
public Object fetchSkuGroupsByIdAndWarehouseId(Integer warehouseId,…

rudeTool
- 526
- 1
- 11
- 25
0
votes
0 answers
Pageable compenent is passed as null even we pass page,size,sort object
I have a rest controller that takes pageable as a parameter
@GetMapping(value = "/user", produces = APPLICATION_JSON_VALUE,
consumes = APPLICATION_JSON_VALUE)
public BaseResponse getUsers(
Pageable pageRequest) {
…

Abhishek
- 650
- 1
- 8
- 31
0
votes
1 answer
How to properly hide absolute elements on full page scrolling?
while the code I wrote works, because the page have couple of these absolute elements. it takes a couple milliseconds to hide them, so users who have low-end hardware will sometimes see the absolute elements of page x, on page y.
Is there any way to…

l3est
- 407
- 2
- 4
- 16
0
votes
0 answers
Pageable Sorting not working with named native query in orm.xml using spring boot
I have defined the named native query in orm.xml which maps to the method declared in repository interface
Student Repository
@Query(nativeQuery = true)
public List deptEmplInfosPageable(Pageable pageable);
orm.xml
user1690808
0
votes
1 answer
Im making a app and a part of it is adding blogs in it made by a user, and I cant differ them in more than one page
@Entity
@Table(name="blogs")
public class Blog {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false, length = 300)
private String title;
@Lob @Column (nullable =…

Dimitar
- 15
- 1
- 7
0
votes
2 answers
How to set TotalPages of a PageImpl class in spring boot
I'm converting a Page to a new one by using PageImpl class, but the totalpages attribute has the default value 0. I would like to set totalPages to a specific number. Is it possible to change it?
code
public Page…

Amr EL HAMMADI
- 3
- 1
- 2
0
votes
0 answers
Feign client error - Page size must not be less than one
I have the following Rest controller method:
@GetMapping
public Page findAllCompanies(@RequestParam(value = "name", required = false) String name, Pageable pageable, JwtAuthenticationToken jwtAuthenticationToken) {
...
and the Feigh…

alexanoid
- 24,051
- 54
- 210
- 410
0
votes
2 answers
Spring Boot: Slice/Pageable not returning proper chunk based on page
In my PSQL DB, I have two objects stored and I would like to retrieve each item on their separate page/slice. I am trying to achieve this by passing in the following Page objects:
PageRequest.of(0,1) for the first item and PageRequest.of(1, 1) for…

mr nooby noob
- 1,860
- 5
- 33
- 56
0
votes
1 answer
How to fix convertion error using mongorepository with pageable
I'm getting the following error when pageable's page is 3 or higher (with values 1 or 2 it works). The error is coming from a call to mongorepository.
Failed to convert from type [java.lang.String] to type [java.lang.Boolean] for value 'string';…

Jonas Machado
- 70
- 1
- 9
0
votes
0 answers