mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
Fix cascade loader not join associations after first collection
This commit is contained in:
parent
57e2d25dd3
commit
449d4adc27
@ -763,7 +763,12 @@ else if ( loadQueryInfluencers.getEnabledCascadingFetchProfile() != null ) {
|
|||||||
if ( cascadeStyle == null || cascadeStyle.doCascade( cascadingAction ) ) {
|
if ( cascadeStyle == null || cascadeStyle.doCascade( cascadingAction ) ) {
|
||||||
fetchTiming = FetchTiming.IMMEDIATE;
|
fetchTiming = FetchTiming.IMMEDIATE;
|
||||||
// In 5.x the CascadeEntityJoinWalker only join fetched the first collection fetch
|
// In 5.x the CascadeEntityJoinWalker only join fetched the first collection fetch
|
||||||
joined = !hasCollectionJoinFetches;
|
if ( fetchable instanceof PluralAttributeMapping ) {
|
||||||
|
joined = !hasCollectionJoinFetches;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
joined = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user