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

Add BeforeDeleteCallback and AfterDeleteCallback

Open MaurizioCasciano opened this issue 3 years ago • 0 comments

Consider adding the Callbacks also for Delete operations under https://github.com/spring-projects/spring-data-mongodb/tree/main/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/event.

E.g. before deleting Document A it could be possible to delete all the @DocumentReference fields of A.

MaurizioCasciano avatar Jan 21 '22 20:01 MaurizioCasciano