spring-projects / spring-projects/spring-data-commons
Support for annotation based entity callbacks
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 838
- Forks
- 730
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points, so begin by locating the entity-callback infrastructure and its annotation processing conventions. Define what annotated callback methods should support and how they are discovered during callback execution, while preserving the stated limits around dependency injection and raw entity state access. Done means the feature works generally without registering an extra component.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100