From 48b34b004adf63800f7d218bca6da2ca209888c7 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 25 Apr 2023 08:25:45 +0200 Subject: [PATCH] HHH-15602 Fix small typo --- .../bytecode/enhance/internal/bytebuddy/CodeTemplates.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/CodeTemplates.java b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/CodeTemplates.java index 52ca538e95..7b1f2a170d 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/CodeTemplates.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/CodeTemplates.java @@ -544,7 +544,7 @@ class CodeTemplates { // If this is the inverse side or the old collection is already initialized, // we must remove self from the respective old collection elements inverse collections, // because only the owning side is responsible for persisting the state. - if ( ( inverseSide || Hibernate.isInitialized( argument ) ) && getterSelf() != null ) { + if ( ( inverseSide || Hibernate.isInitialized( field ) ) && getterSelf() != null ) { Object[] array = field.toArray(); for ( int i = 0; i < array.length; i++ ) { if ( ( inverseSide || Hibernate.isPropertyInitialized( array[i], bidirectionalAttribute ) )