HHH-16871 Simplified maximum fetch depth condition
This commit is contained in:
parent
7be0411b4e
commit
8f85f0a6d9
|
@ -972,8 +972,9 @@ public class LoaderSelectBuilder {
|
|||
joined = false;
|
||||
}
|
||||
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 ) ) {
|
||||
return;
|
||||
joined = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue