Skip to content

Configure the right FieldSetMapper based on the type of items in FlatFileItemReaderBuilder #4160

Closed
@fmbenhassine

Description

@fmbenhassine

Now that JDK 17 is the baseline for v5, the FlatFileItemReaderBuilder can use java.lang.Class#isRecord to detect if the type of items is a record or a regular class and configure the right FieldSetMapper accordingly (ie RecordFieldSetMapper for records and BeanWrapperFieldSetMapper for regular classes).

The goal of this issue is to implement this idea to make the configuration of the right FieldSetMapper transparent to the user.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions