@Any discriminated association fails to be implicitly fetched due to UnsupportedOperationException
Description
I have a class that has this association:
When trying to load this from a query, ala:
… results in an UnsupportedOperationException because the fetchable – a DiscriminatedAssociationAttributeMapping – is not a descendant of any of the options in org.hibernate.query.results.Builders#implicitFetchBuilder
Am I doing something wrong?
Activity
Dave MyronJuly 28, 2022 at 7:33 AM
Edited
This is very odd to me:
HBUtil.getSession().createQuery("from SourceAssetRequirement", SourceAssetRequirement.class).list() works fine… HBUtil.getSession().createNativeQuery("select * from source_asset_requirements", SourceAssetRequirement.class).list() blows up with the UnsupportedOperationException.
(Unfortunately I can’t use createQuery until 6.1.2 is out with the fix)
I have a class that has this association:
When trying to load this from a query, ala:
… results in an UnsupportedOperationException because the
fetchable
– aDiscriminatedAssociationAttributeMapping
– is not a descendant of any of the options inorg.hibernate.query.results.Builders#implicitFetchBuilder
Am I doing something wrong?