2 more validation rules

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Feb 07 2002 - 20:14:09 EST

  • Next message: Andriy Shapochka: "Re: ValidationFriendly interface"

    here is 2 more I came up with:

    7) DbRelationship and its reverse relationship can't both have
    "toDependentPK == true" (while they can both be "false" or just one can
    be "true").

    8) If both DbRelationship and its reverse relationship are "to one", one
    of them must have "toDependentPK == true" and the other one
    "toDependentPK == false"

    Both of these rules are needed to properly propagate primary key values
    to dependent objects.

    -- 
    ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
    - Andrei (a.k.a. Andrus) Adamchik
    http://objectstyle.org
    email: andrus at objectstyle dot org
    



    This archive was generated by hypermail 2.0.0 : Thu Feb 07 2002 - 20:24:42 EST