Skip to content

Add sorting ability for unpaged request in QuerydslPredicateExecutor [DATACMNS-1405] #3761

Closed
@spring-projects-issues

Description

@spring-projects-issues

Vladyslav Tkachuk opened DATACMNS-1405 and commented

I'm sorry for a bit confusing title, but I'll try to explain it here.

So, org.springframework.data.querydsl.QuerydslPredicateExecutor has a method to return paged data Page findAll(Predicate predicate, Pageable pageable).

If you want to get all existing entities as one page, Pageable.unpaged() as a second paramater.

However, this way you cannot get this single page sorted anyhow, whereas QPageRequest and PageRequest which extend AbstractPageRequest which implements Pageable have sorting ability.

Based on this, if you want to have a single page with all entities, you won't get it sorted.

To my mind this functionality is missing. 

I would be interested to hear your opinions and ideas.

 


No further details from DATACMNS-1405

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions