Skip to content
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

Support read after write logic #917

Open
schauder opened this issue Jan 27, 2021 · 2 comments
Open

Support read after write logic #917

schauder opened this issue Jan 27, 2021 · 2 comments
Labels
type: enhancement A general enhancement

Comments

@schauder
Copy link
Contributor

In order to utilise triggers and default values a read-after-write logic should be supported.

see also spring-projects/spring-data-commons#2158

@mp911de mp911de added the type: enhancement A general enhancement label Feb 1, 2021
@mp911de mp911de added this to the 3.x milestone Feb 1, 2021
@schauder
Copy link
Contributor Author

schauder commented Sep 1, 2023

For some database a returning clause could be used. For others we would need to actively select the data.

I'm not sure how we should choose if we do apply any read after write logic.

Maybe returning the entity from the method?
After all we would need a return value for the cases where the changed properties aren't writable.

@b-dkordonski
Copy link

Can't you just support returning on database engines that provide it? In jooq with R2DBC this works OOTB, I'm surprised that such basic functionality is missing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants