-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fixes to code examples in jdoc and spec #590
Conversation
in section about pagination
CursoredPage<Car> find(@By(_Car.make) String manufacturer, | ||
@By(_Car.model) String model, | ||
PageRequest<Car> pageRequest); | ||
@Find |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 was missing @Find
* while (page.hasNext()) { | ||
* page = people.inAgeRange(35, 59, | ||
* page.nextPageRequest().withoutTotal()); | ||
* results = page.content(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 this code didn't even compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting the bugs in the examples. One of them went too far and used a feature isn't in Jakarta Data yet so I added suggestions to restore that one to Query by Method Name.
Co-authored-by: Nathan Rauh <nathan.rauh@us.ibm.com>
I applied your suggestions. |
.pageSize(10) | ||
.afterKey(priceMidpoint, 0L); | ||
CursoredPage<Product> moreExpensive = products.findByNameLike(pattern, pageRequest); | ||
PageRequest<Product> pageRequest = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not include the extra space here as you did at:
https://github.com/jakartaee/data/pull/590/files#diff-451947eabf993881db66ea833734022a76dff66ae9b0d26c2417e187fa3932acR1520
No description provided.