HHH-11970 : @NotFound(IGNORE) and @BatchSize
This commit is contained in:
parent
19087d9f15
commit
86f310e4cb
|
@ -55,8 +55,8 @@ public class BatchFetchQueueHelper {
|
||||||
LOG.debug( "Not all entities were loaded." );
|
LOG.debug( "Not all entities were loaded." );
|
||||||
Set<Serializable> idSet = new HashSet<>( Arrays.asList( ids ) );
|
Set<Serializable> idSet = new HashSet<>( Arrays.asList( ids ) );
|
||||||
for ( Object result : results ) {
|
for ( Object result : results ) {
|
||||||
final Serializable id = session.getPersistenceContext().getEntry( result ).getId();
|
// All results should be in the PersistenceContext
|
||||||
idSet.remove( id );
|
idSet.remove( session.getContextEntityIdentifier( result ) );
|
||||||
}
|
}
|
||||||
assert idSet.size() == ids.length - results.size();
|
assert idSet.size() == ids.length - results.size();
|
||||||
if ( LOG.isDebugEnabled() ) {
|
if ( LOG.isDebugEnabled() ) {
|
||||||
|
|
Loading…
Reference in New Issue