Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-273

OrderBy (static) and Sort parameter (dynamic) Repository Queries do not work!

    XMLWordPrintable

    Details

      Description

      Presently, when a Spring Data GemFire user defines a GemFire Repository interface extension query, such as...

      List<Person> findDistinctByFirstNameEqualOrderByLastNameAsc(String firstName);
      

      The OrderBy clause is completely ignored and the "statically" generated Sort meta-data is not applied to the generated GemFire OQL Select Query.

      Furthermore, if a user defines a query interface method with a org.springframework.data.domain.Sort parameter, like so...

      List<Person> findDistinctByLastName(String lastName, Sort orderBy);
      

      The Sort parameter is ignored and not used when generating the OQL Select Query.

        Attachments

          Activity

            People

            Assignee:
            jblum John Blum
            Reporter:
            jblum John Blum
            Last updater:
            Trevor Marshall Trevor Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1d
                1d
                Remaining:
                Remaining Estimate - 1d
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified