Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3507

RepositoryService#allMatches should support JDOQL that has a 'result'

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-RC1
    • 2.0.0-RC2
    • Persistence JDO
    • None

    Description

      given this JDOQL:

      SELECT DISTINCT this.paymentMethod FROM IncomingInvoice

      it is not possible to submit using RepositoryService#allMatches(...)

       

      compared to v1, the reason seems to be that we used to use JDOQuery#executeWithMap(), whereas now we use JDOQuery#executeList, and the latter has a check for whether there is a return phrase (ie "DISTINCT this.paymentMethod").

      The fix, I think, is to call either JDOQuery#executeResultList  rather than JDOQuery#executeList if there is a result phrase.

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: