Skip to content

Conversation

@NathanQingyangXu
Copy link

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.

Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com>
@NathanQingyangXu NathanQingyangXu force-pushed the cosmetic-doc-improvements-jdbc branch from e9f297d to b3e6c63 Compare October 4, 2025 13:57
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 4, 2025
@NathanQingyangXu NathanQingyangXu changed the title cosmetic doc improvements for jdbc components cosmetic doc improvements for jdbc component Oct 4, 2025
+ 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`.
Copy link
Author

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.
Copy link
Author

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.

Copy link
Contributor

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);
    }
}

@mp911de mp911de added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 20, 2025
schauder pushed a commit that referenced this pull request Oct 21, 2025
Fixes various typos and similar.

Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com>

Original pull request #2148
schauder added a commit that referenced this pull request Oct 21, 2025
Undo removal of "withers".

Original pull request #2148
schauder pushed a commit that referenced this pull request Oct 21, 2025
Fixes various typos and similar.

Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com>

Original pull request #2148
schauder added a commit that referenced this pull request Oct 21, 2025
Undo removal of "withers".

Original pull request #2148
schauder pushed a commit that referenced this pull request Oct 21, 2025
Fixes various typos and similar.

Signed-off-by: Nathan Xu <nathan.qinghyang.xu@gmail.com>

Original pull request #2148
schauder added a commit that referenced this pull request Oct 21, 2025
Undo removal of "withers".

Original pull request #2148
@schauder
Copy link
Contributor

Except for the single change regarding "wither" this is merged.

Thanks for the contribution.

@schauder schauder added this to the 4.0 GA (2025.1.0) milestone Oct 21, 2025
@schauder schauder closed this Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation A documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants