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/03/31 01:51:25 UTC
[jira] [Created] (DELTASPIKE-1105) Cannot sort on a find all query
John D. Ament created DELTASPIKE-1105:
-----------------------------------------
Summary: 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)