Commit Graph

1553 Commits

Author SHA1 Message Date
Marvin Deng
adbc39a381 Remove DataAccessResourceFailureException in xml related classes
Resolves #4132
2022-07-18 18:42:35 +02:00
Henning Poettker
a55f556893 Use Hibernate mapping DTD from classpath 2022-07-18 12:45:06 +02:00
Mahmoud Ben Hassine
a30aaac4be Improve generic type handling in RepositoryItemReader 2022-07-17 08:18:20 +02:00
Mahmoud Ben Hassine
5ba363c8ab Remove RepositoryMethodReference from RepositoryItemReaderBuilder
This class and its usage have been reported to be confusing and
causing context startup failures without real added value.

This commit removes that class to simplify the creation
of a RepositoryItemReader through its builder.

Resolves #793
2022-07-17 06:58:29 +02:00
Mahmoud Ben Hassine
565ddcdf96 Change transaction manager type in default batch configuration
This commits changes the type of the transaction manager
from `DataSourceTransactionManager` to `JdbcTransactionManager`
in the default configuration of `@EnableBatchProcessing`.

The `JdbcTransactionManager` adds common JDBC exception translation
which is beneficial for Spring Batch to improve exception handling
and error reporting.

Resolves #4126
2022-07-16 17:52:43 +02:00
Henning Poettker
3ef199b92b Reduce use of deprecated APIs 2022-07-16 00:17:46 +02:00
Henning Poettker
8fefe29895 Enable ignored test in AbstractDelegatorTests 2022-07-15 23:48:53 +02:00
Mahmoud Ben Hassine
53ebd27a5e Enable KafkaItemReaderTests
These tests were temporarily disabled, see 85a9cad.
Now that https://github.com/spring-projects/spring-kafka/pull/2342
is fixed, these tests are re-enabled again.
2022-07-13 19:31:04 +02:00
Mahmoud Ben Hassine
5a69b6b28b Upgrade Hibernate to version 6.1.1.Final 2022-07-13 18:42:39 +02:00
Mahmoud Ben Hassine
85a9cad193 Temporarily disable KafkaItemReaderTests
These tests are failing due to an invalid pom in
spring-kafka-test

Related issue: https://github.com/spring-projects/spring-kafka/pull/2342
2022-07-13 04:29:21 +02:00
Mahmoud Ben Hassine
7c900a9315 Add junit-jupiter-api dependency to spring-batch-infrastructure 2022-07-13 04:21:04 +02:00
Mahmoud Ben Hassine
95a3cf0f4c Fix tests 2022-06-22 11:41:22 +02:00
Mahmoud Ben Hassine
c4ad90b9b1 Apply spring-javaformat style for consistency with other projects
Resolves #4118
2022-05-25 23:06:48 +02:00
Spring Builds
b9bc4c1488 [artifactory-release] Next development version 2022-05-19 01:22:57 +00:00
Spring Builds
a99f1c8645 [artifactory-release] Release version 5.0.0-M3 2022-05-19 01:22:54 +00:00
Mahmoud Ben Hassine
cca4f7ba8e Remove ldap-core-tiger dependency in spring-batch-infrastructure
spring-ldap-core-tiger has been removed in spring-ldap 3.0.0-M2,
see https://github.com/spring-projects/spring-ldap/issues/621
2022-05-19 02:36:54 +02:00
Mahmoud Ben Hassine
df8dac19df Change default encoding to UTF-8 in file-based readers and writers
This commit overrides the fix in #3910 by using UTF-8
as default encoding in file-based item readers and writers.

Issue #1154
2022-05-17 20:07:03 +02:00
Mahmoud Ben Hassine
5bce15288a Change Resource to WritableResource in file-based item writers
Resolves #756
2022-05-09 11:03:22 +02:00
Mahmoud Ben Hassine
6dad2a2d81 Fix NPE in MongoItemReader when sorting is not specified through the builder
Resolves #4082
2022-05-05 15:57:51 +02:00
Spring Builds
437f4797f8 [artifactory-release] Next development version 2022-03-23 11:57:35 +00:00
Spring Builds
273ddeed90 [artifactory-release] Release version 5.0.0-M2 2022-03-23 11:57:32 +00:00
Drummond Dawson
15e18e5fcd Add constructors with var args/Lists
For classes that have a setter for a List<T> field,
create Constructors that take List<T> and var args of T.

Issue #686
2022-03-21 17:16:24 +01:00
Mahmoud Ben Hassine
968a5b5b2e Refine contribution #595
- Update versions of jdbc driver and docker image
- Update Javadocs
- Remove JOB_CONFIGURATION_LOCATION from DDL schema
- Remove unused resources
2022-03-18 17:45:36 +01:00
Jonathan Bregler
9388abb589 Integrate SAP Hana as supported Spring Batch database
This commit adds SAP HANA as a supported Spring Batch database, enabling
developers to seamlessly move their existing Spring Batch projects to SAP HANA
or easily starting new Spring Batch projects on SAP HANA.

This commit contains the following changes:

- Add SAP HANA to the DatabaseType enum
- Add HanaPagingQueryProvider and tests
- Add properties files for SAP HANA

Issue #2515
2022-03-18 16:52:50 +01:00
Mahmoud Ben Hassine
25375ccc40 Upgrade XStream to version 1.4.19
This commit also improves the XStreamUnmarshallingTests
2022-03-16 18:03:01 +01:00
Edgar Asatryan
2e68451cf3 Check arguments of MongoItemReader#setSort
Issue #4014
2022-02-23 12:29:21 +01:00
me
212b3ce950 change parameterValues check -> CollectionUtils.isEmpty
Resolves #4021
2022-02-22 14:08:25 +01:00
Spring Builds
75b1492039 [artifactory-release] Next development version 2022-01-19 12:13:24 +00:00
Spring Builds
a06a866410 [artifactory-release] Release version 5.0.0-M1 2022-01-19 12:13:21 +00:00
Henning Poettker
d23d4f9dde Adapt H2PagingQueryProvider for H2 v2.x
Issue #4047
2022-01-18 16:10:00 +01:00
Mahmoud Ben Hassine
e5c752b4b8 Remove JSR-352 implementation
Resolves #3894
2021-12-13 09:57:48 +01:00
Mahmoud Ben Hassine
411055f433 Update dependencies 2021-11-24 11:09:02 +01:00
Mahmoud Ben Hassine
5dc17b190e Upgrade dependencies to major versions for Spring Batch 5
* Upgrade to Jakarta EE 9
* Upgrade to Spring Framework 6
* Upgrade to Spring Integration 6
* Upgrade to Spring Data 3
* Upgrade to Spring AMQP 3
* Upgrade to Spring for Apache Kafka 3

LDIF support is still in progress waiting for the next
major version of Spring LDAP.

Closes #4027
Closes #3656
2021-11-22 12:16:49 +01:00
Mahmoud Ben Hassine
2a9904bae1 Add version in deprecation note in SqlPagingQueryUtils 2021-11-03 15:37:57 +01:00
Henning Pöttker
78ddf44730 Fix multi-threaded empty read for JdbcPagingItemReader
On empty input, the JdbcPagingItemReader cannot derive
a start value for the sort key to be used in further
queries. For multi-threaded steps, it is thus necessary
to prevent the reader from trying to read further pages
if the first page is empty.

Issue #3898
2021-09-24 10:08:48 +02:00
Mahmoud Ben Hassine
21118caf4f Fix Javadoc unclosed tag 2021-09-21 14:52:37 +02:00
Mahmoud Ben Hassine
fe911c8456 Update SQLServer DDL script to use sequences instead of tables
Emulating sequences with tables causes deadlocks when running
multiple jobs at the same time. Sequences have been supported
in SQL Server since version 2012.

This commit replaces the usage of tables to emulate sequences
with real sequences. It also adds a new incrementer that is
based on sequences instead of tables.

Resolves #1448
2021-09-17 20:25:13 +02:00
Mahmoud Ben Hassine
ddbd0d8ebc Fix suffix of test classes names
As per Spring Framework code style [1], the suffix of
test classes should be "Tests". This commit fixes that
for some classes that do not conform to the code style.

[1]: https://github.com/spring-projects/spring-framework/wiki/Code-Style#tests
2021-09-13 11:22:47 +02:00
Mahmoud Ben Hassine
e8bbde10e5 Remove unused imports 2021-09-12 22:23:56 +02:00
Mahmoud Ben Hassine
f85a662ebf Refine contribution #3934
* Add default methods in all listener interfaces
* Remove usage of newly deprecated support classes

Issue #3924
2021-09-10 22:05:02 +02:00
Mahmoud Ben Hassine
c58677e66e Remove irrelevant test 2021-09-09 21:20:11 +02:00
Mahmoud Ben Hassine
36b1d0af3c Remove unused parameter in SqlPagingQueryUtils#generateLimitGroupedSqlQuery 2021-09-09 21:01:54 +02:00
Glenn Renfro
6c619b9f94 FlatFileItemWriter now uses charset to determine default encoding
It now matches the encoding scheme of FlatFileItemReader

Resolves #1154
2021-09-09 15:03:58 +02:00
Rémi Kaeffer
a6d68138ff Fix double "the" typo everywhere in source code 2021-09-03 19:07:19 +02:00
Henning Pöttker
9f4127fb1d Fix HippyMethodInvoker by not considering unsuitable candidates
Resolves #3794
2021-09-03 14:43:54 +02:00
Mahmoud Ben Hassine
e2c0b891c8 Deprecate support for Neo4j
This commit deprecates support for Neo4j
in favor of the spring-batch-neo4j extension

Resolves #3956
2021-09-02 13:19:53 +02:00
Mahmoud Ben Hassine
de9ce2d0cc Use JdbcTestUtils where appropriate in tests 2021-08-26 22:12:34 +02:00
Mahmoud Ben Hassine
d206de1cd0 Clean up schema versions in XML files of tests/samples
The schema version in JobParserWrongSchemaInRootTests-context.xml
has not been removed as it is used on purpose for
JobParserExceptionTests#testWrongSchemaInRoot.

Resolves #913
2021-08-24 11:51:37 +02:00
Ilya Samartsev
595abff170 Fix NPE in sql exception translation
Resolves #3968
2021-08-18 20:06:41 +02:00
Mahmoud Ben Hassine
bb3809cf55 Remove deprecated APIs
Resolves #3836
2021-08-17 21:14:53 +02:00