Open
Description
Entity callbacks (e.g. in MongoDB) are a powerful way of reacting to the persistence layer interacting with the entity. It would be cool if the entities could be annotated directly and get those methods called in the process of the callback execution in general.
The annotated model has the benefit of no needing an extra component being registered with the infrastructure while of course being limited to not being subject for dependency injection, access to the raw entity state source abstraction etc. but might be just enough for some use cases.