BiDirectional handling causes unexpected IMMEDIATE fetch

Description

A HQL query like the following

Fails on Oracle, because the bidirectional fetching in org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping#createCircularBiDirectionalFetch ignores the requested fetchTiming and fetches an association immediately since the data is “available”.

This causes problems on e.g. Oracle because it doesn’t support functional dependency analysis and hence fails because the select clause contains columns that are not mentioned in the group by clause.

Activity

Show:

Details

Assignee

Reporter

Labels

Affects versions

Priority

Created November 10, 2024 at 5:37 PM
Updated December 4, 2024 at 8:45 AM