spring-data-relational icon indicating copy to clipboard operation
spring-data-relational copied to clipboard

Support read after write logic

Open schauder opened this issue 4 years ago • 2 comments

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

see also https://github.com/spring-projects/spring-data-commons/issues/2158

schauder avatar Jan 27 '21 09:01 schauder

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.

schauder avatar Sep 01 '23 11:09 schauder

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.

b-dkordonski avatar Nov 13 '23 07:11 b-dkordonski