QueryDslPredicateExecutor delete [DATACMNS-553]
See original GitHub issueLovro Pandžić opened DATACMNS-553 and commented
Add a delete method to QueryDslPredicateExecutor
that accepts Predicate
as an argument
Issue Links:
- DATAJPA-954 Delete by Predicate (“is depended on by”)
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
QueryDSL delete method - spring data - Stack Overflow
I'm using spring-data-mongodb 1.2.0 with QueryDSL 2.9.0. Why doesn't the QueryDslPredicateExecutor have a delete(Predicate predicate) method? Is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lpandzic we discussed that topic with our team. Right now,
QuerydslPredicateExecutor
contributes read-only methods (findBy…
) to a repository. Adding adelete
method would suddenly add a modifying flavor to all repositories that implement the interface thus we aren’t convinced about the ratio between useful and introducing unwanted functionality.We will revisit that topic during our efforts for Spring Data 3.0 where we want to investigate further on a read-only/read-write method split for repositories.
Part of the challenge here is that we cannot provide generic update objects. We cannot accept an entity for an update as it’s not obvious what that should express. Also, we do not have generic update objects that would e.g. set individual fields, add values to an array, increment values as these operations aren’t supported consistently across all store modules. So the only thing that would be left over is a delete method and there the ratio between usefulness and effort isn’t in the right balance.