OPEN - BATCH-999: JobExecution ExecutionContext should not be persisted by Step?

fix JobRepositoryUtilsTests
refactor internals of JdbcExecutionContextDao
This commit is contained in:
robokaso
2009-01-20 13:55:39 +00:00
parent c08bdad717
commit 9c9fe8f6ca
4 changed files with 42 additions and 58 deletions

View File

@@ -147,9 +147,9 @@ public class JobRepositoryTestUtils implements InitializingBean {
stepExecutionId);
jdbcTemplate.update("delete from BATCH_STEP_EXECUTION where STEP_EXECUTION_ID=?", stepExecutionId);
}
jdbcTemplate.update("delete from BATCH_JOB_EXECUTION where JOB_EXECUTION_ID=?", jobExecution.getId());
jdbcTemplate.update("delete from BATCH_JOB_EXECUTION_CONTEXT where JOB_EXECUTION_ID=?", jobExecution
.getId());
jdbcTemplate.update("delete from BATCH_JOB_EXECUTION where JOB_EXECUTION_ID=?", jobExecution.getId());
jdbcTemplate.update("delete from BATCH_JOB_PARAMS where JOB_INSTANCE_ID=?", jobExecution.getJobId());
jdbcTemplate.update("delete from BATCH_JOB_INSTANCE where JOB_INSTANCE_ID=?", jobExecution.getJobId());
}