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

Add supporting for custom Enum in FluxResultMapper in toPOJO method #217

Closed
Khakov opened this issue Apr 8, 2021 · 2 comments · Fixed by #218
Closed

Add supporting for custom Enum in FluxResultMapper in toPOJO method #217

Khakov opened this issue Apr 8, 2021 · 2 comments · Fixed by #218
Milestone

Comments

@Khakov
Copy link

Khakov commented Apr 8, 2021

Using enum as a name of tags is a very often case, mapping POJO to InfluxDb works perfectly, but in reverse case it doesn't

I did not check, but it looks as working code (need to check):

...
if (fieldType.isEnum()) {
		field.set(object, Enum.valueOf((Class<Enum>) fieldType, value));
                return;
}
...
@bednar
Copy link
Contributor

bednar commented Apr 9, 2021

@Khakov, thanks for issue 👍, is this something you might be willing to help with?

@bednar
Copy link
Contributor

bednar commented Apr 9, 2021

#218 is ready to review, stay tuned

@bednar bednar added this to the 2.2.0 milestone Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants