Ag model is unaware of inheritance. Let's start adding support for inheritance step-by-step. This task is to make sure GET requests with Cayenne backend could render when fetching a superclass of the hierarchy. Subclasses should render their own properties as defined in the model.
The underlying work will mostly focus on building an inheritance-aware AgEntity and ResourceEntity. So while the entity API will be generic, looks like initially only Cayenne "compiler" will be able to produce inheritance information. A generic POJO case will not be handled, as entities are compiled on-demand and have no knowledge of Ag-enabled subclasses.
Ag model is unaware of inheritance. Let's start adding support for inheritance step-by-step. This task is to make sure GET requests with Cayenne backend could render when fetching a superclass of the hierarchy. Subclasses should render their own properties as defined in the model.
The underlying work will mostly focus on building an inheritance-aware
AgEntity
andResourceEntity
. So while the entity API will be generic, looks like initially only Cayenne "compiler" will be able to produce inheritance information. A generic POJO case will not be handled, as entities are compiled on-demand and have no knowledge of Ag-enabled subclasses.