Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fmbenhassine opened this issue Jul 20, 2022 · 0 comments

Comments

@fmbenhassine
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant