Single table inheritance

From: Mikaël Cluseau (nwr..wrk.dyndns.org)
Date: Wed Oct 13 2004 - 11:43:46 EDT

  • Next message: Bryan Dyck: "Re: Connection Pooling"

    Heelo people,

    I see that Cayenne support single table inheritance but I realy don't
    understand how it work (CAY-24 feature request).

    I created a simple test with 3 tables under PostgreSQL :
    * Header, with a column "id" (serial, primary key) ;
    * Table1, inherits Header and adds a column "name" ;
    * Table1, inherits Header and adds a column "price" ;

    Then, I reeginered the schema using the modeler and generated the
    classes. No inheritance between Header, Table1 or Table2. When I try to
    set the "Inheritance" ObjEntity Configuration of Table1 it overides
    "Table/view" to Header.

    DerivedEntities don't seems to be done for that, too, and some googleing
    didn't shown me anything useful.

    Can someone help me please ?

    Thanks,
    Mikael.



    This archive was generated by hypermail 2.0.0 : Wed Oct 13 2004 - 11:45:21 EDT