Skip to content
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

Hello, does spring-data-jdbc support logical pseudo-delete fields? #1576

Closed
xhc-code opened this issue Jul 25, 2023 · 2 comments
Closed

Hello, does spring-data-jdbc support logical pseudo-delete fields? #1576

xhc-code opened this issue Jul 25, 2023 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@xhc-code
Copy link

Hello, does spring-data-jdbc support logical pseudo-delete fields? When querying or saving, add a pseudo-delete query condition or provide a default value when saving (although it can be set through the default value of the database). Checking the source code is visible in the SqlGenerator package, and no corresponding configuration items are found. Is there a way to achieve such behavior?

Check the official documentation, there is a custom basic library, but this needs to be completely redefined, because the additional query conditions of the built-in repository such as CrudRepository cannot be rewritten. I understand that the built-in convenience of jdbc cannot be used while customizing the repository. Define the interface of the repository and use other implementations such as mybatis, which loses the convenience of data jdbc.

Thank you for your answer.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 25, 2023
@xhc-code
Copy link
Author

Same requirements as this friend (#1547)

@schauder
Copy link
Contributor

schauder commented Aug 7, 2023

Duplicate of #1547

@schauder schauder marked this as a duplicate of #1547 Aug 7, 2023
@schauder schauder closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
@schauder schauder added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants