Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-231

Support to 'countBy' query methods.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1 GA
    • Fix Version/s: 1.4 M1
    • Component/s: Core
    • Labels:

      Description

      It will be nice if was possible to create count…By… methods just like find…By ones. Example:

      public interface UserRepository extends JpaRepository<User, Long> {
      
         public Long /*or BigInteger */ countByActiveTrue();
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              avaz Anderson Vaz
              Last updater:
              Trevor Marshall
              Votes:
              12 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: