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

Issue with @Transient #846

Closed mbabur closed 8 months ago

mbabur commented 9 months ago

@Transient works when storing data but on retrieval complains about member attribute unable to initialise constructor for transient value and I have to use @Value("null'), I am using Kotlin, Spring Boot 3.2 and spring-boot-starter-data-r2dbc:3.2.0 with Spring-webflux. Is this the only solution using @Transient and @Value("null').

Thank you for you assistance

mp911de commented 9 months ago

Using constructors requires some value to be provided. For Kotlin, ideally use value defaulting.

If that doesn't help, please provide a bit of code over we can start a conversation.

spring-projects-issues commented 9 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 8 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.