You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2016/04/02 20:04:25 UTC

[jira] [Resolved] (DELTASPIKE-1105) Cannot sort on a find all query

     [ https://issues.apache.org/jira/browse/DELTASPIKE-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John D. Ament resolved DELTASPIKE-1105.
---------------------------------------
    Resolution: Fixed

> Cannot sort on a find all query
> -------------------------------
>
>                 Key: DELTASPIKE-1105
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1105
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Data-Module
>    Affects Versions: 1.4.2
>         Environment: Wildfly/Hibernate
>            Reporter: John D. Ament
>            Assignee: John D. Ament
>             Fix For: 1.6.0
>
>
> Running this test:
> {code}
>     @Test
>     public void should_sort_all_result()
>     {
>         List<Simple> result = repo.queryAll()
>                 .orderDesc(Simple_.counter)
>                 .orderAsc(Simple_.id)
>                 .getResultList();
>     }
> {code}
> Yields the following error:
> {code}
> Tests in error: 
>   should_sort_all_result(org.apache.deltaspike.data.impl.QueryResultTest): org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: 'e.counter' [select s from org.apache.deltaspike.data.test.domain.Simple s order by e.counter DESC,e.id ASC]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)