question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QueryDslPredicateExecutor delete [DATACMNS-553]

See original GitHub issue

Lovro 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:open
  • Created 9 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mp911decommented, Feb 4, 2021

@lpandzic we discussed that topic with our team. Right now, QuerydslPredicateExecutor contributes read-only methods (findBy…) to a repository. Adding a delete 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.

0reactions
mp911decommented, Jan 7, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found