pushtorefresh / storio

Reactive API for SQLiteDatabase and ContentResolver.
Apache License 2.0
2.55k stars 182 forks source link

Can I use the annotation processor with subclasses? #701

Open sreejithraman opened 8 years ago

sreejithraman commented 8 years ago

For example, can I have an Animal class, Lion class, and Tiger class. Tiger and Lion share similar column names like weight, height, etc. Would such a senario work with storio's annotation processor? Is there anything I should keep in mind when doing this?

nikitin-da commented 8 years ago

Hi, @sreejithraman ! Sorry, but at the moment storIO annotation processor doesn't work with subclasses. We should make smarter annotations validator to have this possibility. Right now you should make type mapping for whole hierarchy manually. Sorry =(