objectbox / objectbox-java

Android Database - first and fast, lightweight on-device vector database
https://objectbox.io
Apache License 2.0
4.38k stars 302 forks source link

Generate Meta Models for abstract base classes #1018

Closed Ditscheridou closed 2 years ago

Ditscheridou commented 2 years ago

The framework allow entity inheritance and enables you to define some base properties on entity classes. But it will not generate a Meta model class for this abstraction. I would expect the framework to do so, so you can make fetches based on this abstraction. It feels very in-consequent here, the developer now has to implement workarounds to be able to make fetches based on a abstract property.

greenrobot-team commented 2 years ago

I don't see exactly how this would work, can you give a concrete example? E.g. for a query the returned objects could then be of various types which would break a lot of assumptions the ObjectBox API makes, no?

no-response[bot] commented 2 years ago

Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue.