NPE while selecting embeddable fields from union query
Activity
Show:
Čedomir Igaly February 1, 2025 at 8:21 AM
@Kishore Pothireddy Sorry, but I do not know that any more than you. I am just an ordinary Hibernate user that is from time to time fixing bug or two.
Kishore Pothireddy January 31, 2025 at 2:43 AM
Thanks for the update @Čedomir Igaly . Any ETA on fix availability in 6.6?
Čedomir Igaly January 30, 2025 at 4:20 PM
Cause of the problem is same as in https://hibernate.atlassian.net/browse/HHH-18069, patch that fixed it should be backported to 6.6
branch - PR #9685
Kishore Pothireddy January 15, 2025 at 3:07 PM
Is there a workaround for this exception?
Duplicate
Details
Details
Assignee
Unassigned
UnassignedReporter
Kishore Pothireddy
Kishore PothireddyLabels
Components
Affects versions
Priority
Created December 24, 2024 at 1:29 AM
Updated February 5, 2025 at 11:11 AM
Resolved February 5, 2025 at 11:11 AM
Getting following error when tried to select embedded fields from union sub queries wrapped in criteria query.
java.lang.NullPointerException: Cannot invoke "org.hibernate.metamodel.mapping.EmbeddableValuedModelPart.findSubPart(String, org.hibernate.metamodel.mapping.EntityMappingType)" because "modelPartContainer" is null
Test case:
https://github.com/hibernate/hibernate-test-case-templates/pull/462