Revert "HHH-13752 - Deletion of entities with many-to-many assocations using non-primary keys for join table"

This reverts commit 11455f3467.
This commit is contained in:
Andrea Boriero 2019-12-05 12:34:10 +00:00
parent 99868fb5f9
commit e924d55fdf
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class DeleteExecutor extends BasicExecutor {
for ( String propertyName : componentType.getPropertyNames() ) {
Collections.addAll( columns, persister.toColumns( propertyName ) );
}
columnNames = columns.toArray( new String[0] );
columnNames = columns.toArray( new String[columns.size()] );
}
else {
columnNames = persister.getIdentifierColumnNames();