Fixes #28802
Create spring.batch.jdbc.isolation-level-for-create
property with the following behavior:
- Default value is
null
- If not set, Spring Batch with JPA will use ISOLATION_DEFAULT level, and if no JPA is detected, then the Spring Batch default (ISOLATION_SERIALIZABLE) is used. This is the current behavior
- If the property is set, it will be passed to Spring Batch and used as isolation level for create operations.
Comment From: snicoll
Thanks for the follow-up @tiborsulyan. Spring Batch has added an enum in the next major release so we'd like to create a local enum to improve user experience in 2.7.x. No need to act on it, we'll do it as part of merging it.
Comment From: snicoll
@tiborsulyan thank you for making your first contribution to Spring Boot.