From 8dff7e7535e6ba6261baa55e4d1796df38c75952 Mon Sep 17 00:00:00 2001 From: Rustam Sultansoy Date: Wed, 6 Nov 2024 11:15:37 +0300 Subject: [PATCH] Update HibernateJpaProvider according to comment in pull request --- .../integration/hibernate/base/HibernateJpaProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/hibernate6-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateJpaProvider.java b/integration/hibernate6-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateJpaProvider.java index 071de6c1bf..9f67519a3e 100644 --- a/integration/hibernate6-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateJpaProvider.java +++ b/integration/hibernate6-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateJpaProvider.java @@ -1260,8 +1260,8 @@ public boolean isOrphanRemoval(ManagedType ownerType, String elementCollectio break; } } - int propertyIndex = componentType.getPropertyIndex(propertyParts[propertyIndex]); - return componentType.getCascadeStyle(propertyIndex).hasOrphanDelete(); + int index = componentType.getPropertyIndex(propertyParts[propertyIndex]); + return componentType.getCascadeStyle(index).hasOrphanDelete(); } @Override