Re: Flattened relationships - some more analysis

From: Andrus (andru..bjectstyle.org)
Date: Mon Oct 21 2002 - 20:07:17 EDT

  • Next message: Andrus: "Alpha 4 released"

    At 12:02 PM 10/22/2002 +1300, Craig Miskell wrote:
    >I say let them :-)
    > >
    > > Or we can make a join table explicitly marked as such in the mapping?
    >I think we can infer it along the way... it is the destination of the
    >first relationship, and needs the pk of the source and the destination
    >to make up it's own pk/attribute list.

    Ok, so here is a more formal definition based on what we discussed:

    "..Given a relationship chain "T1 ->(m) T2 ->(1) T3", DbEntity for T2
    qualifies to be an autogenerated join table if:

    - *All* its attributes are PK.
    - *All* its attributes are "to dep PK".
    - *All* its attributes participate as joins either in "T1 -> T2" or "T2 ->
    T3" relationships"

    ;-)

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Oct 21 2002 - 20:06:36 EDT