On 29/05/2007, at 8:01 PM, Andrus Adamchik wrote:
> Trying to decompose it further (so that we could Jira individual
> chunks easily :-))... +1 for the abstract entities support, but
> they can also be implemented as a separate feature independent from
> inheritance per se.
>
>
>> <obj-entity ...> needs the following additional (optional) xml
>> attributes:
>> - isAbstract="flag"
>
> +1
>
> Also the following steps will be needed:
>
> * Modeler checkbox for ObjEntity "abstract" flag
Yes.
> * Changes to the code generation templates to generate abstract
> java classes for such entities
Yes and the setIsAbstract() and getIsAbstract() functions for
ObjEntity which go hand in hand.
> * Changes to the validation rules to allow ObjEntity with no db
> entity for abstract entities
Actually I don't think that is needed for this first step. That is
needed for step 2: horizontal inheritance.
> * maybe also some runtime checks for abstract entity (???)
I think the main one is that you cannot perform a SelectQuery (or
anything else that returns an ObjEntity) on an abstract entity with
no concrete subclasses. Kind of makes isAbstract a bit useless on its
own, but it is a step in the right direction.
Ari
-------------------------->
Aristedes Maniatis
phone +61 2 9660 9700
PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8
This archive was generated by hypermail 2.0.0 : Wed May 30 2007 - 04:32:57 EDT