Support HQL row-value (tuple) predicates: =, <>, IN

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.0.0
    • Affects Version/s: None
    • Component/s: Query
    • None
    • 3
    • None
    • Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Supported

      HQL row-value constructor predicates over multiple columns:

      where (a, b) = (1, 2)
      where (a, b) <> (1, 2)
      where (a, b) in ((1, 2), (3, 4))
      

      with either bound parameters or literals. Translated to per-component MQL:

      • =$and of per-field $eq
      • <>$nor of that $and
      • in$or of per-row $and

      Today these throw FeatureNotSupportedException ("Expression not supported: SqlTuple" / "Only the following list predicates are supported: field in [not] (...)").

      Out of scope

      • Lexicographic ordering comparison (>, <, >=, <=) — separate ticket.

      Precursor to HIBERNATE-207 (composite primary key), which reuses this decomposition for id predicates.

            Assignee:
            Jeffrey Yemin
            Reporter:
            Jeffrey Yemin
            Almas Abdrazak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: