spring-projects / spring-data-r2dbc

Provide support to increase developer productivity in Java when using Reactive Relational Database Connectivity. Uses familiar Spring concepts such as a DatabaseClient for core API usage and lightweight repository style data access.
Apache License 2.0
708 stars 132 forks source link

java.lang.IllegalStateException: Required property not found for class #858

Closed cooperlyt closed 4 months ago

cooperlyt commented 5 months ago
class SomeData(fieldOne: String, fieldTwo: String){
  private val combo: ComboClass = ComboClass(fieldOne, fieldTwo)

  fun getCombo() {
     return combo
  }
}

throw exception : java.lang.IllegalStateException: Required property not found for class

but change to :

class SomeData(private val fieldOne: String, private val fieldTwo: String){
  private val combo: ComboClass = ComboClass(fieldOne, fieldTwo)

  fun getCombo() {
     return combo
  }
}

it's OK! or fieldOne and fieldTwo have getter that is OK too!

mp911de commented 5 months ago

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

spring-projects-issues commented 4 months ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues commented 4 months ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.