[OS-JIRA] Created: (CAY-87) New objects stored in wrong order; FK violation

From: jir..bjectstyle.org
Date: Thu Jan 29 2004 - 12:04:45 EST

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-88) Unable to see why my flattened toMany is read-only"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-87

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-87
        Summary: New objects stored in wrong order; FK violation
           Type: Bug

         Status: Assigned
       Priority: Critical

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.0 [STABLE]

       Assignee: Andrus Adamchik
       Reporter: Jim Menard

        Created: Thu, 29 Jan 2004 12:02 PM
        Updated: Thu, 29 Jan 2004 12:02 PM
    Environment: PostgreSQL, various OS platforms

    Description:
    Member has a FK to BillAccount. Address has a nullable FK to Member. When I try to save a newly created Member, BillAccount, and Address, the Member is saved first by Cayenne. This causes a FK violation, because the Member's FK to BillAccount is not satisfied.

    The correct order: Address, BillAccount (since it has a FK to Address), and then Member (which has a FK to BillAccount).

    I have had to turn off all FK constraints.

    I will now attempt to upload the Cayenne XML files.

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Thu Jan 29 2004 - 12:04:47 EST