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
{{ message }}
Repository navigation
Before save callback not using transformed entity on update #689
And Here is my custom EntityCallback,I use kotlin and kotlin coroutine(mono { } ) to bridge Reactive code.
Everything is Fine Except the transformed entity returned by onBeforeSave doesn't write to the Database, r2dbc use the old one.
And I add a break point in R2dbcEntityTemplate.java , near the fix code entityToUse = entity;And debug.However it's not executed, And I add To other method looks like will executing when save , it's still not executed,I'm puzzled.
Activity
Fix `entityToUse` on non-versioned updates.
Fix `entityToUse` on non-versioned updates.
Use BeforeConvert callback result on non-versioned updates.
Polishing.
Polishing.
Use BeforeConvert callback result on non-versioned updates.
Polishing.
PSilverQ commentedon Dec 8, 2021
Does it fix in version 1.4.0?
mp911de commentedon Dec 8, 2021
Yes, see 87c2ac5
PSilverQ commentedon Dec 8, 2021
I encounter the problem when I use spring-data-r2dbc ( version
1.4.0), Is there something wrong with my usage?Here is my pom depencency(I override the version of
r2dbcinspring-boot-starter-data-r2dbcby dependencyManagement ):And Here is my custom EntityCallback,I use kotlin and kotlin coroutine(mono { } ) to bridge Reactive code.
Everything is Fine Except the transformed entity returned by
onBeforeSavedoesn't write to the Database,r2dbcuse the old one.And I add a break point in
R2dbcEntityTemplate.java, near the fix codeentityToUse = entity;And debug.However it's not executed, And I add To other method looks like will executing when save , it's still not executed,I'm puzzled.Thanks for reading , want help! O(≧口≦)O
mp911de commentedon Dec 8, 2021
I see now what causes the confusion. We fixed the issue yesterday so it cannot be shipped in a version that was released two weeks ago.