Support for Spring Data
Spring Data is a collection of projects intended to make it easier to develop Spring-powered applications that use new data access technologies such as non-relational databases. Based on a model of exposing Repository objects, Spring Data allows applications to access data in a simple and consistent way across many new platforms. Spring Batch 2.2.0.RC1 now provides
ItemWriterimplementations for a number of the data stores supported by Spring Data including MongoDB, Neo4j, and Gemfire (write only). In addition, Spring Batch 2.2.0.RC1 now has a
RepositoryItemWriterthat will read and write items from custom Spring Data
With this release, Spring Batch 2.2.0.RC1 now supports Java based job definitions. Building a job definition with java configuration is now available via the new
@EnableBatchProcessingannotation and a collection of builders that allow you to construct jobs, steps, flows, splits, etc. By using the
@EnableBatchProcessingannotation the following features are enabled:
- Creation of StepScope - Allowing the configuration of beans via
StepBuilderFactoryare all available to be autowired into your context.
Non-identifying Job Parameters
Spring Batch 2.2.0.RC1 now supports the use of job parameters that do not contribute to the generation of a JobInstance’s identity. As part of this update, the
JobParametersis no longer associated with a
JobInstanceand is now associated with a
JobExecution. To support this change, the job repository schema has updated and a migration script has been provided. You can read the details about the migration script in the Getting Started Guide.
Other Improvements and Bug Fixes
With the release of Spring Batch 2.2.0.RC1, a host of other improvements and bug fixes have been added. The complete list of updates for this release can be found in the changelog for this revision.
Spring Batch Home | Source on GitHub | Reference Documentation