spring-data-mongodb
spring-data-mongodb copied to clipboard
Add Lifecycle Events for update [DATAMONGO-1383]
John Mark opened DATAMONGO-1383 and commented
The current org.springframework.context.ApplicationEvent support is nice, but lacks support for catching updates. For example, I have a lastModified field that I would like to keep up-to-date, but Spring Data does not provide any way to do this if the document is modified using MongoTemplate.update() or MongoTemplate.findAndModify()
No further details from DATAMONGO-1383
Hello folks. Any update on this? What is the reason behind not emitting event when MongoTemplate.update is called? Because of query may end up with updating multiple documents?
As commented on #4291 there's not much we can offer here.