Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for limiting the query result in the query derivation mechanism. [DATAJPA-551] #942

Closed
spring-projects-issues opened this issue Jun 5, 2014 · 4 comments
Assignees
Labels
in: core Issues in core support type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Jun 5, 2014

Thomas Darimont opened DATAJPA-551 and commented

Support for limiting the query result in the query derivation mechanism introduced by DATACMNS-516


Issue Links:

  • DATACMNS-516 Add support for limiting the query result in the query derivation mechanism
    ("depends on")
  • DATAJPA-82 Select Query: Return one entity instead of a list if pagesize=1

Referenced from: pull request #96

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jun 6, 2014

Thomas Darimont commented

Added a PR with support for the SD CMNS feature.
Please revise

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jun 11, 2014

Thomas Darimont commented

Please revise

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jun 13, 2014

Oliver Drotbohm commented

[0, 1, 2, 3, 4]
[0, 1, 2] <- top3

[0, 1, 2] <- top3, new PageRequest(0, 4); hasNext() -> false
[0, 1] <- top3, new PageRequest(0, 2); hasNext() -> true
[] <- top3, new PageRequest(1, 4);
[0, 1] <- top3, new PageRequest(0, 2);
[2] <- top3, new PageRequest(1, 2); hasNext() -> false

if (limit)
    total = max(count, limit)

if (limit < offset)
    []

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jun 17, 2014

Thomas Darimont commented

Adjusted according to code review, please revise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants