You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After debugging the issue, I found that when creating the entity without using the default constructor, no additional actions are performed, such as injecting null values or default values, into fields annotated with @transient.
The same issue occurs with a class that only has an @AllArgsConstructor.
I mistakenly created the issue in the wrong repository and have posted the same issue in the spring-data-commons repository. (spring-projects/spring-data-commons#3256) So, I would like this issue to be closed.
When using
Persistable
with a record class in an R2DBC Data Repository, I found that the record does not work properly with the@Transient
annotation.Here is a sample code:
And the test code:
Running this test produces the following error:
After debugging the issue, I found that when creating the entity without using the default constructor, no additional actions are performed, such as injecting null values or default values, into fields annotated with @transient.
The same issue occurs with a class that only has an
@AllArgsConstructor
.The issue can be reproduced at https://github.com/seminchoi/r2dbc-transient-issue
So, I was wondering if this behavior is intentional or if there are any plans to support it.
Additionally, I would like to know if I can contribute to fixing this issue. If so, could you guide me on which parts of the code I should modify?
The text was updated successfully, but these errors were encountered: