You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Artur Signell (JIRA)" <ji...@apache.org> on 2017/07/07 11:24:00 UTC

[jira] [Created] (DELTASPIKE-1280) Automatic support for count* methods in EntityRepository

Artur Signell created DELTASPIKE-1280:
-----------------------------------------

             Summary: Automatic support for count* methods in EntityRepository
                 Key: DELTASPIKE-1280
                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1280
             Project: DeltaSpike
          Issue Type: New Feature
          Components: Data-Module
            Reporter: Artur Signell


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





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)