-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update domain model with generated non-id fields #1274
Comments
Thanks for report. That's a duplicate of spring-projects/spring-data-r2dbc#440/#433. Can you retest against the latest snapshots? |
Thank you for reply! But I was able to reproduce the behavior on version 1.2.0-SNAPSHOT |
Thanks for the sample. I somehow was sidetracked because we had an issue where auditing and the created date was not populated. This case is different and it was never really considered to be working except for auto-generated Id's. Postgres echo's the inserted row which allows consuming the generated fields. |
Thanks. |
I'm facing the same issue and would like to add that also the default values for fields are not populated after save/update |
Hi all, thee is a temporary solution. It possible to wire a custom query:
the following returning all clause is introduced: RETURNING *. |
any updates on this? It's still relevant and would be great to have a solution for this than providing workarounds. |
This issue needs to be addressed in Spring Data Relational first. |
@mp911de is there any issue about it on Spring Data Relational? |
Hi! there's some solution about this issue? |
See #917 |
The best solution I currently have for this is just adding an additional Had I known this was an issue from the start I would have likely just rolled a non reactive CrudRepository. |
This behavior is rather baffling. If the returned data from It also seems like the ID return doesn't work for certain types and certain databases. With postgres and r2dbc drivers, setting it to a UUID gives you back an entity with a null id, which makes this pretty much unusable.
|
@Dwight-D The behaviour you describe with R2DBC is unrelated to this topic and sounds like a bug. Please create a separate issue for it. |
Got it, thanks. Either way, I think it would be resolved if the |
Versions:
Current Behavior
check_create_at_ret
table has a columncreated_at
with a default value.But after saving the new entity, the value that is set at the database level is not returned.
Example:
Null will be printed
The text was updated successfully, but these errors were encountered: