Re: model enhancements for inheritance

From: Lachlan Deck (lachlan.dec..mail.com)
Date: Tue Aug 05 2008 - 21:31:00 EDT

  • Next message: Ari Maniatis (JIRA): "[jira] Commented: (CAY-795) Horizontal inheritance"

    On 06/08/2008, at 12:09 AM, Andrus Adamchik wrote:

    > Cool. I also think we need a separate Jira for vertical inheritance.
    > Many implementation steps may overlap with horizontal, but this
    > would be good for the RELEASE-NOTES and overall clarity.

    Let me know too what from last years discussion what concepts/ideas
    needed further clarification.

    > On Aug 5, 2008, at 9:45 AM, Aristedes Maniatis wrote:
    >
    >>
    >> On 05/08/2008, at 11:35 PM, Marcin Skladaniec wrote:
    >>
    >>> I'm now confused with vertical-horizontal naming. You say
    >>> vertical, jira https://issues.apache.org/cayenne/browse/CAY-795
    >>> says horizontal. I guess we talk about the same thing anyway, but
    >>> just to be sure: I'm trying to model a database schema where there
    >>> are 3 tables: Artwork, Painting and Sculpture.
    >>> Artwork is an abstract entity with its own table
    >>> Painting and Sculpture are extending Artwork, but have their own
    >>> tables as well.
    >>> You are suggesting that both superclass and subclass should have
    >>> PK, this means yet another table in required to link the two
    >>> tables. This seems odd to me as the relationship is simple 1..1,
    >>> is that a requirement of JPA ?
    >>> I'm reading up on JPA, but I cannot find it.
    >>
    >> I'll have a bit of a chat to Marcin about this on the phone and get
    >> him up to speed where this was left off.... I've got some
    >> documentation to show him before we need to bring this back on the
    >> list.

    with regards,

    --
    

    Lachlan Deck



    This archive was generated by hypermail 2.0.0 : Tue Aug 05 2008 - 21:31:56 EDT