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

Data mapper - support mapping between map and pojo #228

Open
greenlaw110 opened this issue Dec 28, 2019 · 0 comments
Open

Data mapper - support mapping between map and pojo #228

greenlaw110 opened this issue Dec 28, 2019 · 0 comments
Assignees

Comments

@greenlaw110
Copy link
Collaborator

greenlaw110 commented Dec 28, 2019

For the following given POJO class:

    public static class Bar {
        public int id;
    }

    public static class Foo {
        public String name;
        public Bar bar;
    }

Suppose an instance of Foo has the following data:

{
    "name": "abc",
    "bar": {
        "id": 123
    }
}

Then it shall be able to map to Map<String, Object> as:

"name": "abc",
"bar.id":  123

The reverse mapping shall also apply

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