dkharrat / NexusData

Core Data for Android
Apache License 2.0
72 stars 19 forks source link

Parent Entity supported? #14

Closed j4nos closed 7 years ago

j4nos commented 7 years ago

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;
    }
dkharrat commented 7 years ago

For superEntity, the JSON field name is extends.

j4nos commented 7 years ago

Thanks, meantime figured out! 😊