Skip to content

Commit

Permalink
Fix HibernateJpaProvider for #1886
Browse files Browse the repository at this point in the history
  • Loading branch information
sultansoy authored and beikov committed Nov 6, 2024
1 parent fa4d73b commit 007ea31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,8 @@ public boolean isOrphanRemoval(ManagedType<?> ownerType, String elementCollectio
break;
}
}

return componentType.getCascadeStyle(propertyIndex).hasOrphanDelete();
int index = componentType.getPropertyIndex(propertyParts[propertyIndex]);
return componentType.getCascadeStyle(index).hasOrphanDelete();
}

@Override
Expand Down

0 comments on commit 007ea31

Please sign in to comment.