File tree 1 file changed +3
-2
lines changed
hibernate-core/src/main/java/org/hibernate/persister/entity
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1651,6 +1651,7 @@ protected Object initializeLazyPropertiesFromDatastore(
1651
1651
try {
1652
1652
Object result = null ;
1653
1653
final Object [] values = lazySelect .load ( id , session );
1654
+ int i = 0 ;
1654
1655
for ( LazyAttributeDescriptor fetchGroupAttributeDescriptor : fetchGroupAttributeDescriptors ) {
1655
1656
final boolean previousInitialized = initializedLazyAttributeNames .contains ( fetchGroupAttributeDescriptor .getName () );
1656
1657
@@ -1666,11 +1667,11 @@ protected Object initializeLazyPropertiesFromDatastore(
1666
1667
// of course that would mean a new method on SelfDirtinessTracker to allow un-marking
1667
1668
1668
1669
// its already been initialized (e.g. by a write) so we don't want to overwrite
1670
+ i ++;
1669
1671
continue ;
1670
1672
}
1671
1673
1672
-
1673
- final Object selectedValue = values [fetchGroupAttributeDescriptor .getLazyIndex ()];
1674
+ final Object selectedValue = values [i ++];
1674
1675
1675
1676
final boolean set = initializeLazyProperty (
1676
1677
fieldName ,
You can’t perform that action at this time.
0 commit comments