-
Notifications
You must be signed in to change notification settings - Fork 356
Convert AggregateReference by converters instead of custom code paths. #993
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
Conversation
887f17b
to
c55690f
Compare
...c/src/main/java/org/springframework/data/jdbc/core/convert/AggregateReferenceConverters.java
Outdated
Show resolved
Hide resolved
...c/src/main/java/org/springframework/data/jdbc/core/convert/AggregateReferenceConverters.java
Outdated
Show resolved
Hide resolved
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/QueryMapper.java
Outdated
Show resolved
Hide resolved
* @param value the value to be converted. | ||
* @return a non null {@link JdbcValue} holding the converted value and the appropriate JDBC type information. | ||
*/ | ||
private JdbcValue convertSpecial(RelationalPersistentProperty property, @Nullable Object value) { |
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.
Having special
in a method name is typically a red flag. How about something like getWriteValue
?
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 don't think getWriteValue
really conveys what the method is doing. And it is handling the special values.
I agree that the special is suspicious and there might be a bette abstraction hiding or at least a better name, I don't think getWriteValue
is it.
c55690f
to
887f17b
Compare
That's merged and polished now. |
Closes #992