mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-12835 In the end, remove the assertion
It's not really compatible with batch loading, padding and a couple of other corner cases. And I don't think it has a lot of value by itself.
This commit is contained in:
parent
7d9ebd262d
commit
c9de4b8ce7
@ -54,12 +54,10 @@ public static void removeNotFoundBatchLoadableEntityKeys(
|
||||
}
|
||||
LOG.debug( "Not all entities were loaded." );
|
||||
Set<Serializable> idSet = new HashSet<>( Arrays.asList( ids ) );
|
||||
int originalIdSetSize = idSet.size();
|
||||
for ( Object result : results ) {
|
||||
// All results should be in the PersistenceContext
|
||||
idSet.remove( session.getContextEntityIdentifier( result ) );
|
||||
}
|
||||
assert idSet.size() == originalIdSetSize - results.size();
|
||||
if ( LOG.isDebugEnabled() ) {
|
||||
LOG.debug( "Entities of type [" + persister.getEntityName() + "] not found; IDs: " + idSet );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user