Re: horizontal inheritance

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri May 06 2005 - 09:49:25 EDT

  • Next message: Randy Leonard: "Re: horizontal inheritance"

    Hi Randy,

    > I am taking my first look at Cayenne, am curious of plans for supporting
    > inheritance across many database tables. Specific questions:

    > 1. Is this something under consideration?

    Not in the short term. Long term - maybe.

    > 2. Could I mimic this by creating my own subclass of CayenneDataObject
    > which contained access to shared properties? My data objects would
    > inherit from this class.

    Absolutely. In the Modeler you can enter the name of a superclass in the
    "Superclass" field of an ObjEntity (or "DataObject Superclass" field of
    the DataMap if this superclass is shared by all entities).

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri May 06 2005 - 09:49:27 EDT