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

(cherry picked from commit 86f310e4cb)
This commit is contained in:
Gail Badner 2017-09-26 22:10:48 -07:00
parent cb62334f46
commit 49b638a4d0
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() ) {