-
Notifications
You must be signed in to change notification settings - Fork 132
Add support for auditing #281
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
Comments
Thanks for your ticket. Auditing is not yet supported. We first require an entity callback/lifecycle event infrastructure, see #215. |
Will support be provided in the future? |
Yes, auditing will come to Spring Data R2DBC. The reason we do not support auditing yet is that we do not have a reactive auditing infrastructure that is able to return the auditor. |
Would it be beneficial to port auditing as is and convert to reactive at some low level? Update: |
Depends on spring-projects/spring-data-commons#458. |
Btw, just a question, but wouldn't it make sense to be able to have a SQL database and be able to log audits to somewhere else like ELK? would it make sense to create such auditing? |
The approach sounds similar to Hibernate Envers (while envers stores revisions in the SQL database). The generic |
We now provide auditing support that can be enabled through EnableR2dbcAuditing. @configuration @EnableR2dbcAuditing class Config { @bean public ReactiveAuditorAware<String> myAuditorProvider() { return new AuditorAwareImpl(); } }
That's in place now. |
Entity:
Repository:
After
repo.save(..)
createdDate
remains nullThe text was updated successfully, but these errors were encountered: