BATCH-1635: remobe clear() from Hibernate/JPA writers

This commit is contained in:
Dave Syer
2011-02-03 17:43:08 +00:00
parent 0093836593
commit 1e1edb8ff9
4 changed files with 15 additions and 26 deletions

View File

@@ -81,7 +81,6 @@ public class HibernateItemWriterTests {
expectLastCall().andReturn(false);
ht.saveOrUpdate("bar");
ht.flush();
ht.clear();
replay(ht);
List<String> items = Arrays.asList(new String[] { "foo", "bar" });

View File

@@ -79,7 +79,6 @@ public class JpaItemWriterTests {
em.merge("bar");
expectLastCall().andReturn("bar");
em.flush();
em.clear();
replay(em);
replay(emf);
TransactionSynchronizationManager.bindResource(emf, new EntityManagerHolder(em));