Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Support TypeConverters when parsing CSV to entity via annotation #1

Open
mklueh opened this issue May 20, 2021 · 0 comments
Open

Support TypeConverters when parsing CSV to entity via annotation #1

mklueh opened this issue May 20, 2021 · 0 comments

Comments

@mklueh
Copy link
Owner

mklueh commented May 20, 2021

Currently, only entity fields of type String will be parsed when using a parsing object with annotations. Should be possible to cover default types and add custom type converters based on column name, or specified in the annotation.

Global .withTypeConverter function should remain, but declaring converters on annotation level makes sense if there are different formattings of the same date type in one file for example.

Evaluation if .withTypeConverter makes sense for parsing as well, which should as we can match against the type of the field related to the column name.

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

No branches or pull requests

1 participant