I need to store information on certain classes, which, in turn, are inherited from other classes.
As far as I know, in 2015, Realm developers wrote that while inheritance is not supported, but its support is planned in the future.
I found information from the middle of 2016, which says that inheritance is not yet supported.
On the current version of Realm, I cannot save inherited objects, but maybe I just do something wrong?
Tell me, please, how is Realm now with inheritance?
If there is still no support for inheritance, can there be any less difficult ways to solve this problem (without drastically changing the existing model level in general and without decomposing it in particular)?
I have one solution, but I would like to know how you solve this problem.
String,DateandRealmObject/RealmList/ are supported as Realm model fields. Accordingly, no other classes are inherited or not. can be model fields in this db. Or I did not understand the question ... - pavlofffclass A {...}andclass B extends A {...}, how to save objects of classBto Realm? - post_zeewBas a model that is inherited, but not fromRealmObjector “put” classBas one of the fields in theRealmObjectmodel? - pavlofffclass A {...},class B extends A implements RealmModel {...}. As a result, when compiling, I get theerror: Realm model classes must either extend RealmObject or implement RealmModel to be considered a valid model class(refers toclass B). - post_zeew