JPA projection getting 'is no accessor method' in 3.2.0-RC2 and Kotlin 1.9.20 #3221
Labels
status: feedback-provided
Feedback has been provided
status: waiting-for-triage
An issue we've not yet triaged
Environment:
Spring Data JPA 3.2.0-RC2
Kotlin 1.9.20
JDK 21
Problem:
For a Koltin interface projection over a native Query, we are getting the following error when we try to access a property:
Invoked method public abstract java.lang.String com.example.issuejpakotlin.AggregateStats.getPipelineId() is no accessor method
The following is the Kotlin interface:
And the JPA repository:
How to reproduce:
We attached a Spring Boot project, you can run the test there.
Debugging:
Seems like the org.springframework.data.util.KotlinBeanInfoFactory class cannot find any accessor method in the interface.
This code works fine in Spring Boot 3.0.2 and Kotlin 1.9.20 where KotlinBeanInfoFactory class was not used.
Any help will be appreciated.
The text was updated successfully, but these errors were encountered: