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

Query generation for getting first sorted record of table without filtering

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: 1.9 GA (Evans)
    • Fix Version/s: None
    • Component/s: Repositories
    • Labels:
    • Environment:
      spring boot 1.2 snapshot

      Description

      I would like to simply get the first entity of a table simply specifying the order without any kind of filter, but I seem unable to to that. What I tried include both findFirstOrderByFieldDesc(…) and findFirstAllOrderByFieldDesc(…) but the fail telling that "Desc is not a property". Also, I'm unable to use findAll(…) specifying both a Sort and a Pageable, i.e.: the method findAll(Sort s, Pageable p) would be handy.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            dusty Alex
            Last updater:
            Thomas Darimont
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: