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

Parent Entity supported? #14

Closed
j4nos opened this issue Dec 13, 2016 · 2 comments
Closed

Parent Entity supported? #14

j4nos opened this issue Dec 13, 2016 · 2 comments

Comments

@j4nos
Copy link

j4nos commented Dec 13, 2016

Is Parent Entity supported. Tried to set superEntityName but it is not processed?!

"entities": [{
      "name": "Record",
      "attributes": [{
        "name": "id",
        "type": "String"
      }]
    }, {
      "name": "Item",
      "superEntityName" : "Record",

In ObjectModelJsonParser there is a static class called Entity. It has superEntity field. Strange though from Json it does not read up value.

    static class Entity {
        String name;
        @SerializedName("extends") String superEntityName;
        List<Attribute> attributes;
        List<Relationship> relationships;
        List<EnumProperty> enums;
    }
@j4nos j4nos closed this as completed Dec 14, 2016
@dkharrat
Copy link
Owner

For superEntity, the JSON field name is extends.

@j4nos
Copy link
Author

j4nos commented Dec 15, 2016

Thanks, meantime figured out! 😊

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

No branches or pull requests

2 participants