BATCH-1418: HibernateCursorItemReader now implements jumpToItem
This commit is contained in:
@@ -203,7 +203,14 @@ public class HibernateCursorItemReader<T> extends AbstractItemCountingItemStream
|
||||
initialized = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void jumpToItem(int itemIndex) throws Exception {
|
||||
for(int i = 0; i < itemIndex; i++){
|
||||
cursor.next();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the cursor and hibernate session.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user