Questions tagged [pageable]
104 questions
0
votes
1 answer
Save Kendo Pagable User Input To Persist Grid State
I'm having a problem with Kendo .Pagable. We have a webapplication that displays entries in a grid. The user can choose between 25, 50, 100, 200 entries per site. But whenever the user enters the entry edit page and goes back to the overview page it…

Raphael Müller
- 1
- 1
0
votes
0 answers
Spring data jpa, pageable adds own specs to custom query
i have a problem. I'm trying to do custom query with filtering by date usin time stamp, but im using Pageable and it adds to query after comma id desc limit and it causing error like below. I dont know how to get arroung this problem.
select * from…

wiler121
- 1
- 1
0
votes
1 answer
Pagable Sort.Order ignore case
(I'm using Micronaut)
I have a list of students and I want to sort it by name. I am using Pageable and sort as query parameters
http://localhost:8080/admin/students?page=0&size=10&sort=name,asc&status=graduated
and I get this…

marhg
- 659
- 1
- 17
- 30
0
votes
2 answers
Missing Attribute 'type' in Spring WebClient Response for Microservice Communication
I want to use WebClient to retrieve a page from another microservice. When I directly request the microservice using Postman, the response includes the type attribute among other fields in the content section. However, when I make the request via…

Gykonik
- 638
- 1
- 7
- 24
0
votes
1 answer
how to delete a repeat row by id in a query, using QueryDsl
I'm stuck in get the query with unique row for codeRecurrence in a query.
public JPQLQuery getQueryErrorRecurrence(Integer companyCode, Collection> searchModelDTOs) {
//Entities
QRecurrencyEntity…

Javtronic
- 3
- 1
- 2
0
votes
0 answers
How i work with Query and Pageable in Spring Boot
I am working with Project of Movies in spring , I have a problem working with a select query and pageable
Here the code
The repository
public interface MovieRepository extends JpaRepository {
@Query("select p from Pelicula p…

Alexander Castillo
- 11
- 2
0
votes
1 answer
JPA Pageable seems to fetch all rows after accessing more than one of the results in the list
I am attempting to use Pageable and org.springframework.data.domain.Page to get a list of entities. We only want one page at a time to be retrieved.
The problem arises when I attempt to access the returned list. When it is within a transaction,…

Lima Jim
- 11
- 1
0
votes
0 answers
Retrieve global index of element with pagination JPA Postgresql
In my project there is a service that retrieves a list of documents. Till now the way to retrieve them is with pagination object this way we don't send back to frontend all the elements.
public Page findDocumentPage(Pageable pageable) {
…

César Castro Aroche
- 595
- 1
- 9
- 20
0
votes
1 answer
Retrieve global index of element with pagination JPA Postgresql
In my project there is a service that retrieves a list of documents. Till now the way to retrieve them is with pagination object this way we don't send back to frontend all the elements.
public Page findDocumentPage(Pageable pageable)…

César Castro Aroche
- 595
- 1
- 9
- 20
0
votes
1 answer
how to make saveAll result returning pageable?
I have an API (POST) that as a result is returning a list of 90 objects, therefore I want to return a pageable result and I do no how
public ResponseDto createlPlans(){
-------
return new ResponseDto(PlanRepository.saveAll(PlanList))}

Maria-Elena
- 127
- 1
- 11
0
votes
0 answers
Spring Boot - Add Next and Prev links to controller response
I have a simple controller in Spring Boot application
@GetMapping("/")
public Page listStocks(Pageable pageable) {
return stockService.list(pageable);
}
It calls list method in StockService to get a list of items from the database.…

Mahmood Kohansal
- 1,021
- 2
- 16
- 42
0
votes
2 answers
How do I make a DTO for the Page<> interface?
I am writing an online store using Spring Boot (MVC) and Hiberbate. The problem is that when I get a list of drinks, JSON gives me unnecessary information from the Page interface. I don't know how you can create an DTO for the interfaces to get rid…

Artur Vartanyan
- 589
- 3
- 10
- 35
0
votes
2 answers
Why does the Java compiler allow int/int division if the result must be an int?
I want to provide the actual page based on the entry index of a table's element. I use PageRequest.of(int page, int size).
I have the index which is passed down to the function, and a constant PAGESIZE_SEARCH which is 50.
I want to pass the current…

leachim
- 167
- 4
- 12
0
votes
1 answer
Query with Hibernate Search and get all items without paging
I'm using Hibernate Search in my Spring Boot project.
The most of the time it's a perfect solution for my needs except in one case when I have to get all items selected by full text search query.
Is there a chance to avoid Hibernate Search / Lucene…

horvoje
- 643
- 6
- 21
0
votes
3 answers
Pageable in spring for paging on List
I have a list of object which contain 10000 records i am trying to split that records in each of 10,
But somehow it is not working.. can someone have a look
@Query("select…

dhS
- 3,739
- 5
- 26
- 55