Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6008

Query DSL groupBy and orderBy should only accept single-valued properties

    XMLWordPrintable

Details

    Description

            QueryFactory qf = getQueryFactory();
            Query q = qf.from(User.class)
                  .select(Expression.min("name"))
                  .groupBy("addresses.street")
                  .build();
            q.list();
      

      Should throw an exception during query parsing because property "addresses.street" is not single-valued.

      Similar behaviour should be expected for orderBy.

      Attachments

        Issue Links

          Activity

            People

              anistor Adrian Nistor (Inactive)
              anistor Adrian Nistor (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: