Commit Graph

6156 Commits

Author SHA1 Message Date
Mahmoud Ben Hassine
37b8adee1e Update Spring dependencies to latest snapshots 2023-05-05 06:38:12 +02:00
Henning Poettker
4faa842bb1 Upgrade to Mockito 5
Issue #4366
2023-05-04 00:09:11 +02:00
Minsoo Kim
4a971a0764 Enhance switch statements
Issue #4365
2023-05-03 23:59:16 +02:00
Mahmoud Ben Hassine
7460c5f9a1 Update Javadoc of JdbcPagingItemReaderBuilder 2023-05-03 23:46:29 +02:00
Jonas
bb337c6b2f Change visibility of properties to protected in JdbcPagingItemReaderBuilder
There are cases, when you want to extend the JdbcPagingItemReader
by adding some custom fields and behaviours, but want to stay in
the normal way of creating this class via a Builder class.

If you want to do it, you currently have to reimplement the whole
class just for adding some fields because there is no non-ugly way
to access the fields. This commit makes those properties protected,
so one can override the default build() method behaviour in the
derived class and still have access to the properties.

Issue #4331
2023-05-03 23:28:57 +02:00
Mahmoud Ben Hassine
21bc4d582b Allow StaxEventItemReader to auto-detect the input file encoding
Before this commit, it was not possible to pass a null encoding
to the StaxEventItemReader, which prevents the XML event reader
to auto-detect the file encoding.

This commits makes the encoding setter more lenient by accepting
a null value.

Resolves #4101
2023-04-27 20:52:37 +02:00
Mahmoud Ben Hassine
ec161f8429 Reload test context before each method in AsynchronousTests
Resolves #4095
2023-04-25 23:30:26 +02:00
Jay Bryant
851bf706d8 Fix for the XML/Java switch regression
and some other problems.

Some problems cannot be fixed.
See the comment for details.

Partially resolves #4168
2023-04-24 16:20:45 +02:00
James Woodruff
c146f80e42 Fix BATCH_STEP_EXECUTION DDL in schema appendix
Issue #4356
2023-04-24 15:41:25 +02:00
Mahmoud Ben Hassine
972951a40a Remove unused imports and apply imports code style 2023-04-11 16:28:36 +02:00
Robert McNees
babb91342d Update GitHub Action
Resolves #4346
2023-04-11 15:00:05 +02:00
Henning Poettker
e61065ab00 Reduce use of deprecated APIs 2023-03-29 15:34:48 +02:00
Henning Poettker
2b536578c9 Add SafeVarargs annotations 2023-03-29 15:23:51 +02:00
Kajsa Anderson
74be83a3a5 Update scalability.adoc
Move commentary on xml configuration just below the configuration
it's explaining, instead of having it in the middle of the Java
configuration example.

Issue #4338
2023-03-29 12:22:52 +02:00
Mahmoud Ben Hassine
30ce3326d1 Improve performance of JdbcJobInstanceDao#getLastJobInstance
Credit to @chenglongyan for the fix

Resolves #4024
2023-03-29 11:37:06 +02:00
Mahmoud Ben Hassine
f06772db14 Update community files 2023-03-23 13:24:02 +01:00
Mahmoud Ben Hassine
71e7dd5a55 Update ISSUE_REPORTING.md
* Add instructions for Boot-based projects
* Add instructions for Docker-based tests
2023-03-23 11:02:22 +01:00
Mahmoud Ben Hassine
dbdbf787e6 Update Javadocs 2023-03-21 17:51:53 +01:00
Glenn Renfro
386277ddc7 Fix tiny misspelling in the sybase integration test comments 2023-03-21 16:18:21 +01:00
swapy
1343eee3c2 Fix type of date/time fields in documentation
This commit fixes a bug in the documentation of JobExecution
and StepExecution to point to `java.time.LocalDateTime` instead
of `java.util.Date`.

Resolves #4324
2023-03-21 15:24:20 +01:00
Tatiana Slednikova
145c31b86f Change JobParameters to HashMap
Resolves #4179
2023-03-21 15:01:06 +01:00
Mahmoud Ben Hassine
597ecb4b68 Improve the issue reporting process
This commit adds a set of guidelines to report issues.

Related to: #4329
2023-03-17 23:21:20 +01:00
Mahmoud Ben Hassine
4513d78ba5 Use text blocks for SQL queries
This commit replaces String concatenation with
text blocks for SQL queries in various DAOs.
This improves the readability of the code.

NB: Not all SQL queries in the code base were
changed to use text blocks, but only those where
readability became an issue.
2023-03-03 06:31:25 +01:00
Mahmoud Ben Hassine
af62a22919 Add Spring Batch logo in README.md 2023-03-01 22:28:21 +01:00
Mahmoud Ben Hassine
7a0fedec02 Add Github Action to generate release notes 2023-02-28 16:46:24 +01:00
Mahmoud Ben Hassine
8c8fc19809 Update CI/CD build status badge 2023-02-28 15:04:55 +01:00
Mahmoud Ben Hassine
dee6862f9a Rename Github Actions workflow files 2023-02-27 22:34:08 +01:00
Mahmoud Ben Hassine
e07ed7a58b Update the release process to automatically close the staging repository 2023-02-27 22:31:19 +01:00
Mahmoud Ben Hassine
8b4dce7923 Update documentation upload build 2023-02-27 22:28:28 +01:00
Mahmoud Ben Hassine
58802381c9 Add Github Action to deploy a milestone release to Artifactory 2023-02-27 22:26:20 +01:00
Mahmoud Ben Hassine
37c26dd005 Next development version 2023-02-23 00:27:23 +01:00
Mahmoud Ben Hassine
3aa503d6ca Release version 5.0.1 2023-02-23 00:20:40 +01:00
Mahmoud Ben Hassine
310575ab06 Fix directory setup in sonatype staging build 2023-02-23 00:00:09 +01:00
Mahmoud Ben Hassine
3aa72bf96a Fix artifact URLs in sonatype staging build 2023-02-22 23:36:16 +01:00
Mahmoud Ben Hassine
001aac4f46 Fix steps order in artifactory staging build 2023-02-22 20:53:21 +01:00
Mahmoud Ben Hassine
d594be1d87 Prepare release 5.0.1 2023-02-22 18:30:08 +01:00
Mahmoud Ben Hassine
e08e6cabf1 Update CI Management section in pom.xml files 2023-02-22 16:38:51 +01:00
Henning Poettker
93800c6bae Improve step execution polling and retrieval
Resolves #3790

---
Ported from c68da18 without the JSR related bits
2023-02-22 10:10:11 +01:00
Philippe Marschall
c707284f80 Use batch inserts for job parameters
Use batch inserts for job parameters to reduce
the number of database round trips.

Issue #3867
2023-02-21 20:00:49 +01:00
drow724
89e76164af Add default component name in constructor of AvroItemReader
Issue #4285
2023-02-21 18:08:46 +01:00
jinwoo-Bae
2cc0be4a0c Replace usage of deprecated jobOperator#start method with newer version
Related to #4303
2023-02-21 15:52:25 +01:00
Min-soo
b76993ca3d Fix version in Javadoc's since tag of DefaultBatchConfiguration
Issue #4312
2023-02-21 15:33:44 +01:00
Stephan Freund
5fae33185f Fix TARGET_NAME_PREFIX in StepScope
Resolves #3936
2023-02-21 10:47:29 +01:00
Mahmoud Ben Hassine
ab9dbc3e93 Update documentation upload build to deploy XSD schemas
Issue #4128
2023-02-20 22:53:55 +01:00
Mahmoud Ben Hassine
558ad29f5b Remove version suffix from XSD schema
This is to be consistent with other XSDs from the portfolio
where the file with the latest XSD is not suffixed with a version.
2023-02-20 22:53:18 +01:00
Mahmoud Ben Hassine
1741815f51 Fix directory name in XSD schema distribution content 2023-02-20 22:43:43 +01:00
Mahmoud Ben Hassine
40109584bf Add missing AOT hints for Spring Batch integration module
Resolves #4307
2023-02-20 11:10:03 +01:00
Mahmoud Ben Hassine
0103ef025d Fix object graph deletion in SimpleJobRepository#deleteJobInstance
Before this commit, SimpleJobRepository#deleteJobInstance
was only deleting the given job instance and not the entire
object graph, which leads to data inconsistency (orphan job
executions and invalid foreign keys).

This commit fixes the contract and the implementation of the method
to delete the entire object graph.

Resolves #4250
2023-02-20 09:57:08 +01:00
Mahmoud Ben Hassine
4629294b65 Fix object graph deletion in SimpleJobRepository#deleteJobExecution
Before this commit, SimpleJobRepository#deleteJobExecution
did not delete associated step executions as specified in the
contract of the method.

This commit fixes the implementation to delete the entire
object graph as specified.

Resolves #4249
2023-02-20 08:41:34 +01:00
Mahmoud Ben Hassine
4ea54388e7 Fix inconsistent state validation rules in RepositoryItemReader
Before this commit, state validation rules in RepositoryItemReader
were not consistent with those applied in its builder.

This commit makes validation rules consistent between the two ways
of creating a RepositoryItemReader. This commit also adds a getter
for the component name in ExecutionContextUserSupport to be able to
assert on it where appropriate down the hierarchy.

Resolves #4276
2023-02-18 04:46:47 +01:00