Commit Graph

1537 Commits

Author SHA1 Message Date
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
Mahmoud Ben Hassine
f995c83b16 Extract count key as constant in ResourcesItemReader 2021-08-12 22:12:00 +02:00
Mahmoud Ben Hassine
f4befae548 Fix typo in test method name 2021-08-12 22:01:53 +02:00
Mahmoud Ben Hassine
f83ba20173 Remove usage of reflection to call session.close in HibernateItemReaderHelper 2021-08-12 21:59:55 +02:00
Mahmoud Ben Hassine
27e11b52f9 Remove usage of deprecated APIs
Resolves #3838
2021-08-12 15:51:02 +02:00
Mahmoud Ben Hassine
31899d5fc3 Remove usage of deprecated APIs
Issue #3838
2021-08-11 20:23:12 +02:00
Henning Pöttker
64c09c523e Replaces deprecated interfaces
Replaces the deprecated
- type InstantiationAwareBeanPostProcessorAdapter
- type GenericTypeResolver
- method StringUtils::isEmpty
- field BigDecimal::ROUND_HALF_UP

Issue #3838
2021-08-11 15:20:18 +02:00
Mahmoud Ben Hassine
7bbbd4f667 Refine contribution #3962
- Fix failing tests
- Update year in license headers

Related to #3838
2021-08-10 17:50:41 +02:00
Sebastiano Valle
24422b5163 Remove some deprecated APIs from tests
The following deprecated APIs are not in use anymore in the project's tests:
- `org.junit.rules.ExpectedException#none`
- `org.mockito.MockitoAnnotations#initMocks`
- `org.mockito.Mockito#verifyZeroInteractions`

Issue #3838
2021-08-10 17:48:21 +02:00
Henning Pöttker
7242f8fe77 Replace deprecated TransactionSynchronizationAdapter
Issue #3838
2021-08-10 15:28:02 +02:00
Philippe Marschall
3d0cb90590 Remove double brace initialization
Remove double brace collection initialization as
it is considered bad practice.
2021-08-10 12:56:58 +02:00
Philippe Marschall
f15edd414a Fix some raw types 2021-08-10 12:41:19 +02:00
Philippe Marschall
c9e06b2a7f Don't call wrapper constructors directly
The constructors of the wrapper classes for primitives (Double,
Integer, Long) have been deprecated since JDK 9 and should no longer be
called. Instead the static factory #valueOf should be used.
2021-08-10 11:54:25 +02:00
Philippe Marschall
1f3dd5f401 Replace Assert.assertThat with MatcherAssert.assertThat
Assert.assertThat is deprecated with MatcherAssert.assertThat as the
replacement.
2021-08-09 21:04:52 +02:00
Philippe Marschall
2aa94d09d1 Replace #initMocks with MockitoRule
Replace all references of MockitoAnnotations#initMocks with the
MockitoRule JUnit rule.
2021-08-09 18:33:39 +02:00
Henning Pöttker
8258325413 Refactor deprecated method extractDatabaseMetaData
Issue #3838
2021-08-09 18:22:35 +02:00
Henning Poettker
0ad68037b6 Reduce naming collisions in consecutive tests 2021-08-09 13:36:31 +02:00