Skip to content

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

@Khakov

Description

@Khakov

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;
}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions