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.
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.