-
Notifications
You must be signed in to change notification settings - Fork 358
findById never returns Empty, but throws an exception instead. [DATAJDBC-124] #356
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
Comments
Jens Schauder commented The root problem is that the I saw two options to fix this: a) use b) catch the right exception and convert it to an I went with the second approach because:
|
Greg Turnquist commented I agree with your decision, unless something like performance bubbled up as grossly different in this solution |
Use queryForStream for streamed query results. ResultSetExtractor is ignored because it cannot be used together with streams. Original pull request spring-projects#176 Closes spring-projects#356
Use queryForStream for streamed query results. ResultSetExtractor is ignored because it cannot be used together with streams. Original pull request spring-projects#176 Closes spring-projects#356
Use queryForStream for streamed query results. ResultSetExtractor is ignored because it cannot be used together with streams. Original pull request spring-projects#176 Closes spring-projects#356
Use queryForStream for streamed query results. ResultSetExtractor is ignored because it cannot be used together with streams. Original pull request spring-projects#176 Closes spring-projects#356
Use queryForStream for streamed query results. ResultSetExtractor is ignored because it cannot be used together with streams. Closes spring-projects#356
Use queryForStream for streamed query results. ResultSetExtractor is ignored because it cannot be used together with streams. Closes spring-projects#356
Jens Schauder opened DATAJDBC-124 and commented
I did not completely verify this but I'm under the impression that
findById
doesn't returnOptional.empty
but instead throws an exeception insteadReferenced from: pull request #14, and commits ff50ae4, 1d63be8, 2067fb6
The text was updated successfully, but these errors were encountered: