• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

best practice for implementation of sub Type and Super Type in Room

eniac1989

Lurker
Hello my friends,
I had a question about best practice for implementation of super type and sub type in android.
I have different categories in my reminder application such as birthday,todo,shopping,... .So that they are in common in some properties which I thought that it would be better to be in parent type (category entity).I know that in Room we can use inheritance but it would gather parent fields in to sub types (same as attached file).
I think it would make duplicate data in tables.So what is the best practice in this problem?

Thanks in advance
 

Attachments

  • Screenshot from 2018-10-18 21-25-12.png
    Screenshot from 2018-10-18 21-25-12.png
    40 KB · Views: 109
Back
Top Bottom