File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 36
36
import org .hibernate .sql .results .graph .FetchParent ;
37
37
import org .hibernate .sql .results .graph .basic .BasicFetch ;
38
38
import org .hibernate .sql .results .graph .basic .BasicResult ;
39
+ import org .hibernate .sql .results .graph .embeddable .EmbeddableResultGraphNode ;
39
40
import org .hibernate .type .descriptor .java .JavaType ;
40
41
41
42
/**
@@ -346,6 +347,7 @@ public Fetch generateFetch(
346
347
// returning a domain result assembler that returns LazyPropertyInitializer.UNFETCHED_PROPERTY
347
348
final EntityMappingType containingEntityMapping = findContainingEntityMapping ();
348
349
if ( fetchTiming == FetchTiming .DELAYED
350
+ && !( fetchParent instanceof EmbeddableResultGraphNode )
349
351
&& containingEntityMapping .getEntityPersister ().getPropertyLaziness ()[getStateArrayPosition ()] ) {
350
352
valuesArrayPosition = -1 ;
351
353
}
You can’t perform that action at this time.
0 commit comments