File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
hibernate-core/src/main/java/org/hibernate/internal Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,20 @@ private void prepareCurrentRow(boolean underlyingScrollSuccessful) {
129
129
loadContexts .register ( getJdbcValuesSourceProcessingState () );
130
130
persistenceContext .beforeLoad ();
131
131
try {
132
- currentRow = getRowReader ().readRow ( getRowProcessingState (), getProcessingOptions () );
133
-
134
- getRowProcessingState ().finishRowProcessing ();
135
- getJdbcValuesSourceProcessingState ().finishUp ( false );
132
+ try {
133
+ currentRow = getRowReader ().readRow ( getRowProcessingState (), getProcessingOptions () );
134
+
135
+ getRowProcessingState ().finishRowProcessing ( );
136
+ getJdbcValuesSourceProcessingState ().finishUp ( false );
137
+ }
138
+ finally {
139
+ persistenceContext .afterLoad ();
140
+ }
141
+ persistenceContext .initializeNonLazyCollections ();
136
142
}
137
143
finally {
138
- persistenceContext .afterLoad ();
139
144
loadContexts .deregister ( getJdbcValuesSourceProcessingState () );
140
145
}
141
- persistenceContext .initializeNonLazyCollections ();
142
146
143
147
afterScrollOperation ();
144
148
}
You can’t perform that action at this time.
0 commit comments