Skip to content

Support legacy Kotlin property path rendering.#3510

Open
hutiefang76 wants to merge 1 commit into
spring-projects:mainfrom
hutiefang76:codex/spring-data-commons-3503-kpropertypath-compatibility
Open

Support legacy Kotlin property path rendering.#3510
hutiefang76 wants to merge 1 commit into
spring-projects:mainfrom
hutiefang76:codex/spring-data-commons-3503-kpropertypath-compatibility

Conversation

@hutiefang76

Copy link
Copy Markdown

The Kotlin property-path DSL moved from org.springframework.data.mapping to org.springframework.data.core, but a path built with the deprecated mapping div extensions was not recognized by the new core toDotPath. As a result, paths such as author.name and books.author.name were reduced to their final segment.

This change lets the core renderer recognize both legacy mapping path wrappers. It only expands the legacy non-iterable wrapper from private to internal; public extension signatures remain unchanged.

Tests:

  • ./mvnw -Dtest=KPropertyPathTests test (13 tests)

  • Core and mapping property-path suites together (25 tests)

  • ./mvnw -DskipTests package

  • git diff --check

  • I have read the Spring Data contribution guidelines.

  • I followed the existing Kotlin import and formatting style.

  • I added regression coverage for normal, iterable, and recursively nested legacy paths.

  • I added myself as an author to the Kotlin types and test class I touched.

Closes #3503

Closes spring-projects#3503

Signed-off-by: hutiefang <hutiefang@qq.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transition to org.springframework.data.core.div in Kotlin DSL

2 participants