-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add lifecycle events [DATAES-587] #1159
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
sothawo commented Mark Paluch, Christoph Strobl what do you think? To implement this would probably mean to extract some {AbstractEventListener} and event classes into spring-data-commons to reuse it? |
Mark Paluch commented Having lifecycle events makes sense. Typically, each store defines its own events because there are store-specifics in each event. You might want to look at MongoDB to get an idea how it is done there. |
sothawo commented I wouldn't have started working on this before Moore is out and the work is on 4. I created this issue because it came up on SO today and I think it might be a good addition so it gets not lost and just was curious what you are thinking about it ;) |
Roman Puchkovskiy commented Ok, while I was publishing a pull request for DATAES-771 it was closed as a duplicate of this one. Still, I believe the PR may be of use: #414 Please let me know how we should proceed from here |
Roman Puchkovskiy commented Hi Peter!
Sorry for questions 3 and 4, I don't want to mess this up :) |
sothawo commented Adding the IndexCoordinate is ok, please make one ticket for all of these fixes.
|
Roman Puchkovskiy commented I've added DATAES-785 |
sothawo commented marking this as resolved, as we have the implementations for the basic events. If more events are needed, new tickets should be created for them |
sothawo opened DATAES-587 and commented
spring-data-mongodb has [lifecycle events|https://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#mongodb.mapping-usage.events.] spring-data-elasticsearch should have something similar
Reference URL: https://stackoverflow.com/questions/56426467/is-it-possible-to-intercept-a-save-or-load-event-in-spring-data-elasticsearch
Issue Links:
DATAES-68 Add support for auditing annotations
DATAES-771 Add after-save entity callbacks support
DATAES-772 Add after-convert entity callbacks support
The text was updated successfully, but these errors were encountered: