[OS-JIRA] Created: (CAY-230) DataContext.deleteObject(...)

From: jir..bjectstyle.org
Date: Thu Nov 04 2004 - 13:05:46 EST

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-231) Generated SQL ends in "WHERE column = NULL""

    Message:

      A new issue has been created in JIRA.

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

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

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-230
        Summary: DataContext.deleteObject(...)
           Type: Bug

         Status: Assigned
       Priority: Critical

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.1

       Assignee: Andrus Adamchik
       Reporter: Katrin Dorendorf

        Created: Thu, 4 Nov 2004 1:05 PM
        Updated: Thu, 4 Nov 2004 1:05 PM
    Environment: mySQL 4.0.12
    Cayenne Modeler 1.1RC1 (October 3 2004)
    Java 1.4.2

    Description:
    Objects are connected with relations per ID, deletion should be per cascade.

    Object1 has more than one involved related Objects2-9
    over more than one step to bottom
    which should all be deleted
    only by DataContext.deleteObject(Object1) per cascade.

    If a Object5, stands 2 steps under Object1 has a invalid ID, so will an Exception be thrown from CayenneDataObject.resolveFault().

    The result is, that the upper Object1 is deleted, but after Exception the rest of related Objects, don't be deleted per cascade, they are garbage in the database.

    Kind regards
    Katrin

    ---------------------------------------------------------------------
    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 Nov 04 2004 - 13:05:48 EST