-
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
Migrate Row
and ResultSet
to Object Conversion to RowDocument
#1618
Conversation
Thanks, @mp911de . |
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.
I have just one question .. see review comments.
} | ||
|
||
if (RowDocument.class.isAssignableFrom(rawType)) { | ||
return (S) document; |
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 isn't that documentAccessor.document()
?
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.
Might apply to other places here as well. If so, we should add tests to cover these cases.
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.
🤦
Wouldn't this one be closed by this as well? #1394 |
Good catch, I closed #1394. I think for Spring Data JDBC, we need to revisit the projection arrangement anyways as this pull request uses projections at the converter level. Other places, that rely on projections through repository proxy interceptors need to call the |
Thanks, @mp911de . |
We now support multi-level projections by introspecting the result and the domain type and read projections directly into a DTO or a backing map for interface projections.
Merge basic converters into Mapping…Converters and introduce deprecated variant to provide guidance for migration off the deprecated types. Cleanup no longer required code.
That's merged. |
JDBC and R2DBC converters now consistently use
RowDocument
for object reading. Additionally, JDBC uses contextual reference resolution as fallback when Single Query Loading cannot be applied.Closes #1554
TODO:
BasicJdbcConverter
toMappingJdbcConverter
and introduce deprecated subclass variant ofMappingJdbcConverter
BasicRelationalConverter
intoMappingRelationalConverter
and introduce deprecated variant