IN PROGRESS - BATCH-518: clean up the *Or* repository methods

saveOrUpdate(JobExecution) -> updateJobExecution
This commit is contained in:
robokaso
2008-07-28 08:46:30 +00:00
parent 1987dce4c0
commit da3eb280c0
8 changed files with 26 additions and 41 deletions

View File

@@ -165,7 +165,7 @@ public class JdbcJobRepositoryTests {
JobExecution execution = repository.createJobExecution(jobConfiguration, new JobParameters());
cacheJobIds(execution);
execution.setEndTime(new Timestamp(System.currentTimeMillis()));
repository.saveOrUpdate(execution);
repository.updateJobExecution(execution);
execution.setStatus(BatchStatus.FAILED);
int before = jdbcTemplate.queryForInt("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE");