[ 
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)

Reply via email to