Re: To Dep PK

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Jun 24 2004 - 11:17:42 EDT

  • Next message: Leonardo Queiroz Antunes: "org.apache.commons.collections.IteratorUtils.singletonIterator"

    Hi Elia,

    This is a feature. It is important to specify correct "master" object
    in a relationship. This ensures that a primary key is correctly
    generated for both master and dependent entities and also that data
    modification operations (insert/update/delete) are executed in the
    correct order.

    On Jun 23, 2004, at 12:49 PM, Elia Morling wrote:

    > Is this a feature or a bug? I have a Master and Detail table.
    >
    > If I create the relationship in the Detail DbEntitiy I can't set "To
    > Dep PK".
    >
    > However if it the relationship is created from the Master DbEntity the
    > "To Dep PK" is set by default.
    >
    > Does it really matter which side the relationship is created? They
    > are reversed upon creation. Shouldn't I be able to set "To Dep PK"
    > even if the relationship was created on the Detail DbEntity.
    >
    > Elia



    This archive was generated by hypermail 2.0.0 : Thu Jun 24 2004 - 11:17:46 EDT