HHH-11970 : @NotFound(IGNORE) and @BatchSize

This commit is contained in:
Gail Badner 2017-09-26 22:10:48 -07:00 committed by Andrea Boriero
parent 19087d9f15
commit 86f310e4cb
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ public class BatchFetchQueueHelper {
LOG.debug( "Not all entities were loaded." );
Set<Serializable> idSet = new HashSet<>( Arrays.asList( ids ) );
for ( Object result : results ) {
final Serializable id = session.getPersistenceContext().getEntry( result ).getId();
idSet.remove( id );
// All results should be in the PersistenceContext
idSet.remove( session.getContextEntityIdentifier( result ) );
}
assert idSet.size() == ids.length - results.size();
if ( LOG.isDebugEnabled() ) {