Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2167

Make SearchQuery open for extension

    XMLWordPrintable

    Details

    • Type: Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.20.0
    • Component/s: appng-persistence
    • Labels:

      Description

      Currently, it is not possible to extend SearchQuery in a reasonable way, since it's fields and inner classes are all private and the execute methods are final.

      But there are be scenarios where extending SearchQuery would be quite useful, for example

      • if the developer needs the full control over the generated JPQL query
      • if it is necessary to do some kind of post-processing/mapping of the results
      • if custom finder methods should be provided

      Therefore, the fields and inner classes should use protected modifier, and the execute method shouldn't be final.

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              mueller.matthias Matthias Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: