-
Notifications
You must be signed in to change notification settings - Fork 378
cosmetic doc improvements for jdbc component #2148
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
cosmetic doc improvements for jdbc component #2148
Conversation
Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com>
e9f297d to
b3e6c63
Compare
| + You can let Spring auto-discover your javadoc:org.springframework.data.jdbc.core.dialect.JdbcDialect[] by registering a class that implements `org.springframework.data.jdbc.core.dialect.DialectResolver$JdbcDialectProvider` through `META-INF/spring.factories`. | ||
| Dialects are resolved by javadoc:org.springframework.data.jdbc.core.dialect.DialectResolver[] from a `JdbcOperations` instance, typically by inspecting `Connection.getMetaData()`. + | ||
| You can let Spring auto-discover your javadoc:org.springframework.data.jdbc.core.dialect.JdbcDialect[] by registering a class that implements `org.springframework.data.jdbc.core.dialect.DialectResolver$JdbcDialectProvider` through `META-INF/spring.factories`. | ||
| `DialectResolver` discovers dialect provider implementations from the class path using Spring's `SpringFactoriesLoader`. |
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 assume the intention was to insert a hard line break here. Currently, a literal "+" is displayed in the resulting doc instead.
| The query you provide must match the format the `RowMapper` expects. | ||
| Columns for all properties that are used in the constructor of an entity must be provided. | ||
| Columns for properties that get set via setter, wither or field access are optional. | ||
| Columns for properties that get set via setter or field access are optional. |
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 am not sure about the wither, though I am almost sure it is a typo or defect, so I simply deleted it.
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.
It's not a typo. A "Wither" is similar to a getter but for immutable objects which returns an object wich is a copy of the original one but with a single property changed.
Something like
record Person(String first, String last) {
Person withLast(String last) {
return new Person (this.first, last);
}
}
Fixes various typos and similar. Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com> Original pull request #2148
Undo removal of "withers". Original pull request #2148
Fixes various typos and similar. Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com> Original pull request #2148
Undo removal of "withers". Original pull request #2148
Fixes various typos and similar. Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com> Original pull request #2148
Undo removal of "withers". Original pull request #2148
|
Except for the single change regarding "wither" this is merged. Thanks for the contribution. |
Seems the doc has room for improvement. This PR tries to correct some obvious defects and is only restricted to Spring Data JDBC module. Further follow-up PRs might be created in the future.