Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1105

Cannot sort on a find all query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.2
    • 1.6.0
    • Data-Module
    • None
    • Wildfly/Hibernate

    Description

      Running this test:

          @Test
          public void should_sort_all_result()
          {
              List<Simple> result = repo.queryAll()
                      .orderDesc(Simple_.counter)
                      .orderAsc(Simple_.id)
                      .getResultList();
          }
      

      Yields the following error:

      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]
      

      Attachments

        Activity

          People

            johndament John D. Ament
            johndament John D. Ament
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: