-
Notifications
You must be signed in to change notification settings - Fork 350
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 Stream support to JdbcAggregateOperations #1963
Conversation
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.
That looks pretty good.
I'd prefer methods where we use stream
instead of find
so the streaming variant of findByIds
would be streamByIds
.
Could you rename the methods accordingly?
@@ -15,14 +15,9 @@ | |||
*/ | |||
package org.springframework.data.jdbc.mybatis; | |||
|
|||
import static java.util.Arrays.*; |
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.
Please avoid reformatting the code.
See https://github.com/spring-projects/spring-data-build/tree/main/etc/ide for how to setup the formatter of your IDE.
@@ -149,7 +149,7 @@ protected RelationalPersistentProperty createPersistentProperty(Property propert | |||
|
|||
/** | |||
* @since 3.2 | |||
* @return iff single query loading is enabled. |
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.
The double f is actually intentionally.
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.
Ops, sorry :) I'll fix it
569f382
to
6da1df3
Compare
Hi! |
Signed-off-by: Sergey Korotaev <[email protected]>
6da1df3
to
14dd7c8
Compare
See #1714 Original pull request #1963 Signed-off-by: Sergey Korotaev <[email protected]>
Thanks, that's merged. |
Super, thanks! |
Hi, everyone!
I wanted to contribute for you and started with this PR :)
I have added Stream support to JdbcAggregateOperations. These methods use other methods at the db level with the return value type stream (or cursor for MyBatis).
I also read that findAll** is a reserved naming convention, for the sake of similarity I added findAllStreamable or something like that.
Added tests for these methods.
Closes #1714