Currently, I have some abstract model classes that have common behavior for other specific models. For example, the abstract SearchableModel.class can be inherited by other specific models.
When using Objectify, I would like to annotate the SearchableModel class because it requires its own fields. However, I am not interested in making any polymorphic queries, and I do not want any objects of type "SearchableModel" in the data store, but only types of specific classes inherited from SearchableModel. How can I continue with @ Entity / @ EntitySubClass annotations?
If I annotate both abstract and concrete classes with @Entity and save / load an instance of concrete classes, will it work as expected?
I know that I can test it myself, however, I have not yet established objectivity. I'm still trying to figure out how this can be used with my current model.
Any other suggestions on how to organize this dependency are also welcome.
Thank.
source
share