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
It would be nice if Spring Data R2DBC has hooks like @PostLoad, @PrePersist, @PreUpdate in JPA so that some computation for transient props could take place.
hantsy, hakandilek, DVMaslov, cbornet, antoine-mulet and 1 more
We will add Spring Data-typical Lifecycle callbacks using application event listeners and the EntityCallback API in a future version. JPA mostly requires lifecycle callback annotations to be used on entities while Spring Data's approach is using external listeners that are also beans.
@mp911de Does it mean there will be Interfaces like ReactiveBeforeConvertCallback like in Spring Data MongoDB? If so this would be even better than JPA-like annotations.
Activity
mp911de commentedon Oct 20, 2019
We will add Spring Data-typical Lifecycle callbacks using application event listeners and the
EntityCallback
API in a future version. JPA mostly requires lifecycle callback annotations to be used on entities while Spring Data's approach is using external listeners that are also beans.[-]Hooks like JPA's @PostLoad, @PrePersist, @PreUpdate[/-][+]Add lifecycle callbacks and EntityCallback support[/+]juergenzimmermann commentedon Oct 20, 2019
@mp911de Does it mean there will be Interfaces like
ReactiveBeforeConvertCallback
like in Spring Data MongoDB? If so this would be even better than JPA-like annotations.mp911de commentedon Oct 20, 2019
Exactly.
IvanKonevJr commentedon Jan 22, 2020
Also may be supporting SQL Function around inserting value: #268
#215 - Prepare issue branch.
#215 - Add support for EntityCallbacks.
#215 - Polishing.
#215 - Polishing.
#215 - Add support for EntityCallbacks.
#215 - Polishing.
4 remaining items