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

[CAN'T REPRODUCE] jdoqlFromClause validator is too strict, does not allow for NOT EXISTS

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 1.14.0
    • 1.15.0
    • None
    • None

    Description

      For example:

      @Query(
                      name = "findNotInAnyPaymentBatchByApprovalStateAndPaymentMethod", language = "JDOQL",
                      value = "SELECT "
                              + "FROM org.estatio.capex.dom.invoice.IncomingInvoice "
                              + "WHERE !(SELECT invoice "
                              +         "  FROM org.estatio.capex.dom.payment.PaymentLine).contains(this) "
                              + "   && approvalState == :approvalState "
                              + "   && paymentMethod == :paymentMethod "
                              + "ORDER BY invoiceDate ASC " // oldest first
              ),
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment