Skip to content

Deserializer #2

@miguelcobain

Description

@miguelcobain

Is any deserializer planned?
How can we handle the task of handling the requests from Ember Data?

My main problem is how do we handle associations.

Let's say we have a POST:

{
   "user":{
      "roles":[1,2,3,4]
   }
}

and

public class User {
    List<Role> roles;
}

What would be the equivalent instance in Java?
Creating Role instances within a User instance, with only the their id set? Seems the most sensible approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions