Re: Pb with validatingObjectsOnCommit

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Aug 31 2004 - 12:41:40 EDT

  • Next message: James Treleaven: "Re: [off topic] XMLGUI"

    Are the FK attributes in question also modeled as class properties? I
    suspect this might confuse the validation. If this is the case, could
    you please open a bug report
    (http://objectstyle.org/cayenne/bugs-features.html).

    Thanks
    Andrus

    On Aug 31, 2004, at 11:39 AM, Jean-Paul Le Fèvre wrote:
    > I'm having a problem with the new validation option available in
    > cayenne 1.1B2 :
    >
    > When validatingObjectsOnCommit is set to true
    > my commit statement fails complaining that some mandatory attributes
    > are not set. These attributes are foreign keys toward other tables.
    >
    > However when validatingObjectsOnCommit is false everything works fine,
    > at least as expected. Examining the output of the QueryLogger I can see
    > that the attributes are actually correctly set in the insert statement.
    >
    > Any explanation ?



    This archive was generated by hypermail 2.0.0 : Tue Aug 31 2004 - 12:41:46 EDT