Fix column names in BATCH_JOB_EXECUTION_PARAMS

For some DB providers, columns cannot be named "VALUE".
This commit adds a prefix where appropriate to the columns
of `BATCH_JOB_EXECUTION_PARAMS`.

Related to:

* https://github.com/spring-projects/spring-batch/issues/3960
This commit is contained in:
Mahmoud Ben Hassine
2022-10-04 22:13:40 +02:00
parent 2660f2bb27
commit fd9dca3504
23 changed files with 76 additions and 78 deletions

View File

@@ -138,9 +138,9 @@ listing shows:
----
CREATE TABLE BATCH_JOB_EXECUTION_PARAMS (
JOB_EXECUTION_ID BIGINT NOT NULL ,
NAME VARCHAR(100) NOT NULL ,
TYPE VARCHAR(100) NOT NULL ,
VALUE VARCHAR(2500) ,
PARAMETER_NAME VARCHAR(100) NOT NULL ,
PARAMETER_TYPE VARCHAR(100) NOT NULL ,
PARAMETER_VALUE VARCHAR(2500) ,
IDENTIFYING CHAR(1) NOT NULL ,
constraint JOB_EXEC_PARAMS_FK foreign key (JOB_EXECUTION_ID)
references BATCH_JOB_EXECUTION(JOB_EXECUTION_ID)
@@ -152,11 +152,9 @@ The following list describes each column:
* `JOB_EXECUTION_ID`: Foreign key from the `BATCH_JOB_EXECUTION` table that indicates the
job execution to which the parameter entry belongs. Note that multiple rows (that is,
key/value pairs) may exist for each execution.
* TYPE_CD: String representation of the type of value stored, which can be a string, a
date, a long, or a double. Because the type must be known, it cannot be null.
* NAME: The parameter name.
* TYPE: The fully qualified name of the type of the parameter.
* VALUE: Parameter value
* PARAMETER_NAME: The parameter name.
* PARAMETER_TYPE: The fully qualified name of the type of the parameter.
* PARAMETER_VALUE: Parameter value
* IDENTIFYING: Flag indicating whether the parameter contributed to the identity of the
related `JobInstance`.