mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-16871 Simplified maximum fetch depth condition
This commit is contained in:
parent
65c1d2db2b
commit
899bf1efa5
@ -942,8 +942,9 @@ else if ( loadQueryInfluencers.getEnabledCascadingFetchProfile() != null ) {
|
|||||||
joined = false;
|
joined = false;
|
||||||
}
|
}
|
||||||
else if ( fetchDepth > maximumFetchDepth + 1 ) {
|
else if ( fetchDepth > maximumFetchDepth + 1 ) {
|
||||||
|
// We can preserve the existing value of joined for basic and embedded values
|
||||||
if ( !( fetchable instanceof BasicValuedModelPart ) && !( fetchable instanceof EmbeddedAttributeMapping ) ) {
|
if ( !( fetchable instanceof BasicValuedModelPart ) && !( fetchable instanceof EmbeddedAttributeMapping ) ) {
|
||||||
return;
|
joined = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user