spring-projects / spring-projects/spring-data-jpa
Create an API to customize query creation and query processing [DATAJPA-1551]
@schauder is already working on this.
Since Dec 30, 2020.
- Dominant language
- Java
- Stars
- 3.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Jens Schauder opened DATAJPA-1551 and commented
There are various issues that try to make some kind of customisation possible for queries.
Most of these are somewhat ad hoc in that someone tries to implement something, eventually stumbles upon something that is not available, because it is final or not public and then requests to change that.
This kind of approach does not result in a maintainable API and therefore has little chance to actually get implemented.
This issue tries to take a step back and gather
- What are the things people try to do from a end user perspective (not: I try to access property x in class y, but: I'm trying to access an additional where clause with a bind parameter to all queries of a certain form)
- See what, if any we can support with a proper API
Issue Links:
-
DATACMNS-293 Add infrastructure for generic query augmentation
-
DATAJPA-307 Add support for soft deletes
-
DATAJPA-948 Provide extensibility of query creation
-
DATAJPA-1272 Extend visibility modifiers of ParameterMetadataProvider to allow custom implementations of AbstractJpaQuery
5 votes, 6 watchers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.