HHH-17826 ResultSet closed while scrolling results
This commit is contained in:
parent
1b5419b6af
commit
d7d2294bd9
|
@ -128,6 +128,7 @@ public class ScrollableResultsImpl<R> extends AbstractScrollableResults<R> {
|
|||
final LoadContexts loadContexts = persistenceContext.getLoadContexts();
|
||||
loadContexts.register( getJdbcValuesSourceProcessingState() );
|
||||
persistenceContext.beforeLoad();
|
||||
try {
|
||||
try {
|
||||
currentRow = getRowReader().readRow( getRowProcessingState(), getProcessingOptions() );
|
||||
|
||||
|
@ -136,9 +137,12 @@ public class ScrollableResultsImpl<R> extends AbstractScrollableResults<R> {
|
|||
}
|
||||
finally {
|
||||
persistenceContext.afterLoad();
|
||||
loadContexts.deregister( getJdbcValuesSourceProcessingState() );
|
||||
}
|
||||
persistenceContext.initializeNonLazyCollections();
|
||||
}
|
||||
finally {
|
||||
loadContexts.deregister( getJdbcValuesSourceProcessingState() );
|
||||
}
|
||||
|
||||
afterScrollOperation();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue