Support is [not] null predicate on a whole @Struct aggregate embeddable

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Query
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      HQL path expressions into @Struct aggregate embeddable fields are supported in HIBERNATE-93. Operations on a whole @Struct embeddable are not.

      is [not] null on a whole @Struct field throws FeatureNotSupportedException.

      Repro:

        from ItemWithNestedValue where nested is null
        from ItemWithNestedValue where nested is not null
      

      Observed:

        FeatureNotSupportedException: Only the following nullness predicates are supported: field is [not] null
      

      Cause: the nullness predicate handling in AbstractMqlTranslator does not handle a whole-aggregate target; Hibernate does not expand it to a bare ColumnReference.

      Out of scope for HIBERNATE-93 (path expressions into structs).

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

              Created:
              Updated: