You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Thomas Andraschko (JIRA)" <ji...@apache.org> on 2018/04/23 14:55:01 UTC
[jira] [Resolved] (DELTASPIKE-1280) Automatic support for count*
methods in EntityRepository
[ https://issues.apache.org/jira/browse/DELTASPIKE-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko resolved DELTASPIKE-1280.
-------------------------------------------
Resolution: Fixed
Assignee: Thomas Andraschko
> 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
> Assignee: Thomas Andraschko
> Priority: Minor
> Fix For: 1.9.0
>
>
> 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
(v7.6.3#76005)