Skip to content

Commit

Permalink
Update HibernateJpaProvider according to comment in pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
sultansoy authored Nov 6, 2024
1 parent a01c296 commit 8dff7e7
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;
}
}
int propertyIndex = componentType.getPropertyIndex(propertyParts[propertyIndex]);
return componentType.getCascadeStyle(propertyIndex).hasOrphanDelete();
int index = componentType.getPropertyIndex(propertyParts[propertyIndex]);
return componentType.getCascadeStyle(index).hasOrphanDelete();
}

@Override
Expand Down

0 comments on commit 8dff7e7

Please sign in to comment.