Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-234

Intuitive way of using one-arg operators in Criteria

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-beta1
    • Fix Version/s: 4.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently, one-arg operators must be used like
      Criteria.and/or/where(operand, null, Criteria.ISNULL/Criteria.ISNOTNULL).

      It currently is no compile error to write
      Criteria.and/or/where(operand, Criteria.ISNULL/Criteria.ISNOTNULL)
      but this is interpreted as operand = ISNULL/ISNOTNULL
      which is not what the user intended.

      The above expression should instead be interpreted as operand ISNULL/ISNOTNULL.

        Attachments

          Activity

            People

            • Assignee:
              tfischer Thomas Fox
              Reporter:
              tfischer Thomas Fox
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: