Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1280

Automatic support for count* methods in EntityRepository

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.9.0
    • Data-Module
    • None

    Description

      Stream<Person> findByLocation(String location)

      will automatically create a query for finding all persons with the given location.

      long countByLocation(String location);

      could automatically create a query for counting all persons with the given location.

      This would be 1:1 with how Spring Data works: http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.core-concepts

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            artur Artur Signell
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: