Skip to content

[Feature Request] - Logical Deletion - Auto-Setting Deletion Timestamp and Deleter 逻辑删除 没有拦截器,希望逻辑删除时,可以拦截下,自动设置删除时间 与 删除人 #977

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
supermaverickws opened this issue Mar 26, 2025 · 4 comments
Labels
enhancement New feature or request pending Postpone plans because of more important tasks

Comments

@supermaverickws
Copy link

Reason

逻辑删除 增加拦截器

Description

逻辑删除 没有拦截器,希望逻辑删除时,可以拦截下,自动设置删除时间 与 删除人.

Existing solutions

No response

@supermaverickws supermaverickws added the enhancement New feature or request label Mar 26, 2025
@babyfish-ct
Copy link
Owner

要等,实际影响远大于所求,属于超级大工程

  1. Jimmer支持事务内触发器,逻辑删除的拦截会导致触发器逻辑复杂化
  2. Jimmer支持保存指令,保存指令内部脱钩行为会导致某些关联被自动脱钩从而导致自动逻辑删除,用户直接发出的逻辑删除反而是最简单的。

鉴于强大的整体定位,调整此行为的影响远比直接诉求复杂,短期内无法完成。

@babyfish-ct
Copy link
Owner

仅限实体表,还是中间逻辑删除也有此功能?

@supermaverickws
Copy link
Author

仅实体表,中间逻辑删除不需要

@babyfish-ct
Copy link
Owner

Please wait, the will be a big feature in this feature: RULE of save command

@babyfish-ct babyfish-ct added the pending Postpone plans because of more important tasks label Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending Postpone plans because of more important tasks
Projects
None yet
Development

No branches or pull requests

2 participants