Skip to content

[6.2] HHH-20339 MappedSuperclass query with embeddable path comparison against parameter throws UnsupportedOperationException#12179

Merged
mbellade merged 1 commit intohibernate:6.2from
mbellade:HHH-20339-6.2
Apr 30, 2026
Merged

[6.2] HHH-20339 MappedSuperclass query with embeddable path comparison against parameter throws UnsupportedOperationException#12179
mbellade merged 1 commit intohibernate:6.2from
mbellade:HHH-20339-6.2

Conversation

@mbellade
Copy link
Copy Markdown
Member

@mbellade mbellade commented Apr 14, 2026

Backport of #12178

Here, the MappingMetamodelImpl#resolveMappingExpressible throw is reached because SqmEmbeddedValuedSimplePath#getNodeType() still returns a CompositeSqmPathSource.

By removing the explicit throw, and just falling through to return null, we get to resolveInferredType() which is the same that happens on 7.x.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.



Please make sure that the following tasks are completed:
Tasks specific to HHH-20339 (Bug):

  • Add test reproducing the bug
  • Add entries as relevant to migration-guide.adoc OR check there are no breaking changes

https://hibernate.atlassian.net/browse/HHH-20339

@mbellade mbellade added the 6.2 label Apr 14, 2026
@mbellade mbellade merged commit 37c5962 into hibernate:6.2 Apr 30, 2026
11 of 12 checks passed
@mbellade mbellade deleted the HHH-20339-6.2 branch April 30, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants