spring-projects / spring-projects/spring-data-commons

Configure default QueryDSL customizers [DATACMNS-930]

Open
#1,383 3 comments 0 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Dec 30, 2020.

in: core status: feedback-provided type: documentation type: enhancement
Dominant language
Java
Stars
838
Forks
730
PR merge metrics
No merged PRs in 30d

Description

Kirill Voronin opened DATACMNS-930 and commented

It will be nice to be able to configure some common QuerydslBinderCustomizer s for each repository in one place, probably as a bean(s). For example one to query by any Date using range.

Currently I achieve this using an interface CommonCustomizer that is extended by all repos. But if I want to customize them further, then repo's customize method should include CommonCustomizer.super.customize(bindings, root) call. I wonder if it will be better/cleaner to have an annotation such as QuerydslPredicate(bindings=CommonCustomizer.class) but on a repo interface.

Does I miss something? Maybe even both configuration methods can be useful. If so, I can implement it with a little advice


No further details from DATACMNS-930

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.