Skip to content

Implement logic deletion #1547 #2110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 3.4.x
Choose a base branch
from

Conversation

yuyu1025
Copy link

I want to implement soft deletion step by step by modifying the methods of R2dbcEntityTemplate, while also achieving better scalability.

I plan to achieve this in several steps:

  1. Provide a query wrapper, allowing the implementation class for logical deletion to override this wrapper function.
  2. Split the doDelete method, separating the construction behavior from the final execution. The construction process can be overridden, and the implementation class for logical deletion is also provided to override it.

  - Introduce QueryWrapper interface for query modification
  - Add DefaultQueryWrapper as no-op implementation
  - Integrate query wrapper into R2dbcEntityTemplate operations
  - Support query customization for count, exists, select, update, delete operations

Signed-off-by: finger <finger.xie@foxmail.com>
  - Introduce QueryWrapper interface for query modification
  - Add DefaultQueryWrapper as no-op implementation
  - Integrate query wrapper into R2dbcEntityTemplate operations
  - Support query customization for count, exists, select, update, delete operations

Signed-off-by: finger <finger.xie@foxmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants