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
Set isolation to DEFAULT for JPA transaction manager
Also logs a warning about the fact that locks may not be taken when
starting a Job. JPA and Batch don't really work that well together
in general so it's probably not worth a lot of effort to work aoround
this. If anyone needs to they should create a custom JpaDialect
(and a BatchConfigurer).
Fixesspring-projectsgh-197
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BasicBatchConfigurer.java
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/batch/BatchAutoConfigurationTests.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@
54
54
55
55
importstaticorg.junit.Assert.assertEquals;
56
56
importstaticorg.junit.Assert.assertNotNull;
57
+
importstaticorg.junit.Assert.assertNull;
57
58
importstaticorg.junit.Assert.assertTrue;
58
59
59
60
/**
@@ -143,6 +144,9 @@ public void testUsingJpa() throws Exception {
143
144
// It's a lazy proxy, but it does render its target if you ask for toString():
0 commit comments