-
Notifications
You must be signed in to change notification settings - Fork 38.1k
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
Support Optional
return value in JdbcTemplate
#30927
Comments
This has been extensively discussed a couple of years ago already, and I'm afraid this won't be happening, at least not in On a related note, we got the semantic question of As yet another stylistic variant, one may use Last but not least, there is the idea expressed at the end of the thread in #17262 that we might introduce a new |
Thanks for the explanation. I understand the conclusions of past discussions. If I understand correctly, the result of
|
Granted, there is the stream closing topic. Even terminal operations do not close the stream, so there has to be a rather inconvenient As for |
Created the ticket for |
Since
DataAccessUtils.optionalResult
was added in 6.1.0-M3 #27735 , I would likeJdbcTempalte
/NamedParameterJdbcTemplate
to have methods that returnOptional
.The text was updated successfully, but these errors were encountered: