Skip to content

Commit 703b285

Browse files
committed
HHH-19031 Loading an Entity a second time when it contains an embedded object causes IllegalArgumentException
1 parent f283df2 commit 703b285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/internal/NonAggregatedIdentifierMappingInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ private void resolveInstanceSubInitializers(Object instance, RowProcessingState
324324
for ( int i = 0; i < subInitializersForResolveFromInitialized.length; i++ ) {
325325
final Initializer<InitializerData> initializer = subInitializersForResolveFromInitialized[i];
326326
if ( initializer != null ) {
327-
final Object subInstance = virtualIdEmbeddable.getValue( instance, i );
327+
final Object subInstance = representationEmbeddable.getValue( instance, i );
328328
if ( subInstance == LazyPropertyInitializer.UNFETCHED_PROPERTY ) {
329329
// Go through the normal initializer process
330330
initializer.resolveKey( rowProcessingState );

0 commit comments

Comments
 (0)