Re: How to model Abstract Entities

From: Dov Rosenberg (dov.rosenber..onviveon.com)
Date: Mon Nov 28 2005 - 07:38:10 EST

  • Next message: Andrus Adamchik: "Re: query timeout needed"

    It seems that if I do that and the Superclass is not directly tied to a
    database table the project would show validation errors.

    On 11/28/05 7:24 AM, "Andrus Adamchik" <andru..bjectstyle.org> wrote:

    > There is no explicit mapping of abstract entities via the Modeler.
    > Instead you'd specify a custom superclass for each individual entity
    > (see "Superclass" field in the ObjEntity Editor in the Modeler) or
    > for all entities at once (see "Custom Superclass" field in the
    > DataMap Editor panel).
    >
    > Andrus
    >
    > On Nov 28, 2005, at 3:40 AM, Dov Rosenberg wrote:
    >
    >> In our EOF based EOModel we created some abstract entities that are
    >> not tied to a database entity. For example we created an AbstractEO
    >> entity that contains a single attribute called recordid. We then
    >> created other abstract Eos based off of AbstractEO i.e. DatedEO
    >> (dateadded, datemodified).
    >>
    >> All of our DB based entities inherit from one of the subclasses of
    >> AbstractEO.
    >>
    >> I am not sure how to model this type of entity within Cayenne. (I
    >> am using 1.2M8)
    >>
    >>
    >> --
    >> Dov Rosenberg
    >> Inquira Inc
    >> 370 Centerpointe Circle, ste 1178
    >> Altamonte Springs, FL 32701
    >> (407) 339-1177 x 102
    >> (407) 339-6704 (fax)
    >> drosenber..nquira.com
    >> AOL IM: dovrosenberg
    >>
    >



    This archive was generated by hypermail 2.0.0 : Mon Nov 28 2005 - 07:38:13 EST