You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix object graph deletion in SimpleJobRepository#deleteJobInstance
Before this commit, SimpleJobRepository#deleteJobInstance
was only deleting the given job instance and not the entire
object graph, which leads to data inconsistency (orphan job
executions and invalid foreign keys).
This commit fixes the contract and the implementation of the method
to delete the entire object graph.
Resolves#4250
Copy file name to clipboardExpand all lines: spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/SimpleJobRepository.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -328,6 +328,10 @@ public void deleteJobExecution(JobExecution jobExecution) {
Copy file name to clipboardExpand all lines: spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/SimpleJobRepositoryTests.java
0 commit comments