I'm using vertical inheritance (legacy EOF schema), but it is hackish at
best. I have the parent and child tables mapped in Cayenne as separate
entities and have a relationship between the two. I always fetch the
child (the parent in our case is always abstract) and write cover
methods to access the parent's attributes. This makes it look good in
code and ognl (tapestry paths), but this approach fails on queries, so I
have to be careful.
I'm not sure if that is worthy of a page on the wiki ... :-)
/dev/mrg
-----Original Message-----
From: Mike Kienenberger [mailto:mkienen..laska.net]
Sent: Friday, May 06, 2005 11:07 AM
To: cayenne-deve..bjectstyle.org
Cc: cayenne-deve..bjectstyle.org
Subject: Re: horizontal inheritance
Randy Leonard <randalleleonar..otmail.com> wrote:
> > 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?
Andrus Adamchik <andru..bjectstyle.org> wrote:
> Not in the short term. Long term - maybe.
As with anything, it depends on the interest of those writing code.
If you submit patches to support this, it's more likely to happen sooner
:)
I have a need to deal with vertical inheritance in my current project.
I
know that Michael Gentry is also using vertical inheritance.
Hopefully Michael will post a wiki example on this soon, or I'll be
forced
to go through the mailing list archives to figure out how he did it :)
-Mike
This archive was generated by hypermail 2.0.0 : Mon May 09 2005 - 10:05:50 EDT