spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Add Lifecycle Events for update [DATAMONGO-1383]

Open spring-projects-issues opened this issue 9 years ago • 1 comments

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

spring-projects-issues avatar Feb 18 '16 22:02 spring-projects-issues

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?

gobozov avatar Jun 01 '22 23:06 gobozov

As commented on #4291 there's not much we can offer here.

christophstrobl avatar Feb 24 '23 12:02 christophstrobl