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/06/28 13:07:00 UTC

[jira] [Commented] (DELTASPIKE-1239) Add ability to return QueryResult without predicate

    [ https://issues.apache.org/jira/browse/DELTASPIKE-1239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16526291#comment-16526291 ] 

Thomas Andraschko commented on DELTASPIKE-1239:
-----------------------------------------------

Do you put this method inside your PersonRepository?
Why not just "QueryResult<Person> findAll()" then?

> Add ability to return QueryResult without predicate
> ---------------------------------------------------
>
>                 Key: DELTASPIKE-1239
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1239
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Data-Module
>            Reporter: Matti Tahvonen
>            Priority: Minor
>
> A following method name in repository would be handy for dynamic sorting and paging of all entities:
>     QueryResult<Person> findAllBy();
> Currently the library don't know how to handle that and it requires one to add @Query("from Person") annotation. It would be handy if the query annotation could be left out.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)