RESOLVED - BATCH-650: Use FORWARD_ONLY as scroll mode in HibernateCursorItemReader

added item buffer and made the cursor forward-only (+ had to fix samples using stateful items with rollback)
This commit is contained in:
robokaso
2008-06-04 13:43:00 +00:00
parent c21032332b
commit d377e4c5c3
7 changed files with 95 additions and 55 deletions

View File

@@ -63,8 +63,15 @@ public abstract class CommonItemReaderTests extends TestCase {
assertEquals(foo2, tested.read());
assertEquals(foo3, tested.read());
// TODO handle shortening the commit interval on the fly
//
// tested.mark();
//
// assertEquals(foo3, tested.read());
//
// tested.reset();
assertEquals(foo3, tested.read());
Foo foo4 = (Foo) tested.read();
assertEquals(4, foo4.getValue());