Class ValidatingMongoEventListener

java.lang.Object
org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener<Object>
org.springframework.data.mongodb.core.mapping.event.ValidatingMongoEventListener
All Implemented Interfaces:
EventListener, ApplicationListener<MongoMappingEvent<?>>

@Deprecated(since="4.5") public class ValidatingMongoEventListener extends AbstractMongoEventListener<Object>
Deprecated.
since 4.5, use ValidatingEntityCallback respectively ReactiveValidatingEntityCallback instead to ensure ordering and interruption of saving when encountering validation constraint violations.
JSR-303 dependant entities validator.

When it is registered as Spring component its automatically invoked after object to Document conversion and before entities are saved to the database.

Author:
Maciej Walkowiak, Oliver Gierke, Christoph Strobl