[OS-JIRA] Created: (CAY-64) Deleting HOLLOW object with to-many relationships causes an error

From: jir..bjectstyle.org
Date: Wed Dec 17 2003 - 17:11:17 EST

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-65) Use RelationshipFault as "flyweight""

    Message:

      A new issue has been created in JIRA.

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

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

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-64
        Summary: Deleting HOLLOW object with to-many relationships causes an error
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Fix Fors:
                 1.1 [DEV]
       Versions:
                 1.1 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Andrus Adamchik

        Created: Wed, 17 Dec 2003 5:09 PM
        Updated: Wed, 17 Dec 2003 5:09 PM

    Description:
    The following test fails in "deleteObject" since a hollow object doesn't have to-many relationships initialized:

          List paintings = context.performQuery(
            new SelectQuery(Painting.class));
          Painting p = (Painting) paintings.get(0);
          Artist a = p.getToArtist();
            
          assertEquals(PersistenceState.HOLLOW, a.getPersistenceState());
          context.deleteObject(a);
          assertEquals(PersistenceState.DELETED, a.getPersistenceState());

    ---------------------------------------------------------------------
    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 : Wed Dec 17 2003 - 17:11:18 EST