Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      a simple example, suppose I want to find all the currently invalid medical certificates for a specific person:

      (a certificate is invalid if the start and end dates are not before and after the given date respectively)

      parameters: personId and date

      the following OCL:

      context MedicalCertificate::findInvalidByPerson(personId:Long,date:Date):Collection(MedicalCertificate) body findInvalidByPerson : allInstances->select(certificate | certificate.person.id = personId and (certificate.validityStart > date or certificate.validityEnd < date))

      is translated into (invalid HQL!):

      from MedicalCertificate as certificate where certificate.person.id = :personId certificate.validityStart > :date or certificate.validityEnd < :date

      I expected the generated code to be:

      from MedicalCertificate as certificate where certificate.person.id = :personId and (certificate.validityStart > :date or certificate.validityEnd < :date)

        Attachments

          Activity

            People

            • Assignee:
              overheat overheat
              Reporter:
              wouter Wouter Zoons
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: