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

How to know what operation have triggered BeforeBindCallback? #2601

Open
mrksph opened this issue Sep 29, 2022 · 1 comment
Open

How to know what operation have triggered BeforeBindCallback? #2601

mrksph opened this issue Sep 29, 2022 · 1 comment
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@mrksph
Copy link

mrksph commented Sep 29, 2022

Is it possible to know in SDN 6 what operation triggered BeforeBindCallback?

I'd like to implement auditing feature like it's done in this guide but they use JPA (https://www.baeldung.com/database-auditing-jpa). I need to record all executed operations (create/update/delete) for auditing purposes, either inside our neo4j db or in a dedicated SQL db.

In the documentation the example shows that only the object is returned. It'd be nice to be able to infer which operation type has been executed so we can have more control over them

Thanks

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 29, 2022
@mrksph
Copy link
Author

mrksph commented Oct 17, 2022

Maybe https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#core.domain-events is more appropriate but I still don't know how could I differentiate between a save, update or delete operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants