Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-930

Configure default QueryDSL customizers

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for Feedback
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core, Documentation
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            yoursdearboy Kirill Voronin
            Last updater:
            Kirill Voronin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: