HHH-17826 ResultSet closed while scrolling results
This commit is contained in:
parent
1b5419b6af
commit
d7d2294bd9
|
@ -129,16 +129,20 @@ public class ScrollableResultsImpl<R> extends AbstractScrollableResults<R> {
|
||||||
loadContexts.register( getJdbcValuesSourceProcessingState() );
|
loadContexts.register( getJdbcValuesSourceProcessingState() );
|
||||||
persistenceContext.beforeLoad();
|
persistenceContext.beforeLoad();
|
||||||
try {
|
try {
|
||||||
currentRow = getRowReader().readRow( getRowProcessingState(), getProcessingOptions() );
|
try {
|
||||||
|
currentRow = getRowReader().readRow( getRowProcessingState(), getProcessingOptions() );
|
||||||
|
|
||||||
getRowProcessingState().finishRowProcessing( true );
|
getRowProcessingState().finishRowProcessing( true );
|
||||||
getJdbcValuesSourceProcessingState().finishUp( false );
|
getJdbcValuesSourceProcessingState().finishUp( false );
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
persistenceContext.afterLoad();
|
||||||
|
}
|
||||||
|
persistenceContext.initializeNonLazyCollections();
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
persistenceContext.afterLoad();
|
|
||||||
loadContexts.deregister( getJdbcValuesSourceProcessingState() );
|
loadContexts.deregister( getJdbcValuesSourceProcessingState() );
|
||||||
}
|
}
|
||||||
persistenceContext.initializeNonLazyCollections();
|
|
||||||
|
|
||||||
afterScrollOperation();
|
afterScrollOperation();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue