Hello,
I would like to contribute a ValidatingEntityCallback (in addition to the ValidatingMongoEventListener) to the code base.
The ValidatingMongoEventListener is not suitable for me due to the design nature of EventListener and EntityCallback. I prefer EntityCallback
IMHO the ValidatingMongoEventListener should (even) be marked as deprecated, because
- the
EntityCallbacks are recommended by the Spring docs and
EventListener are by design triggered/executed before any EntityCallback. This can lead to undesired behaviour difficult to track down by a developer, e.g. validation of entity happens before the entity in request is manipulated by any EntityCallback
If the maintainers/team accept my enhancement proposal, I can make a pull request.
Hello,
I would like to contribute a
ValidatingEntityCallback(in addition to theValidatingMongoEventListener) to the code base.The
ValidatingMongoEventListeneris not suitable for me due to the design nature ofEventListenerandEntityCallback. I preferEntityCallbackIMHO the
ValidatingMongoEventListenershould (even) be marked as deprecated, becauseEntityCallbacksare recommended by the Spring docs andEventListenerare by design triggered/executed before anyEntityCallback. This can lead to undesired behaviour difficult to track down by a developer, e.g. validation of entity happens before the entity in request is manipulated by anyEntityCallbackIf the maintainers/team accept my enhancement proposal, I can make a pull request.