[JIRA] Updated: (CAY-966) ObjRelationsship's are not removed processing DropColumnToModel

From: JIRA (Øyvind)
Date: Tue Jan 22 2008 - 14:12:33 EST

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-974) Subquery EJBQL returns wrong entity in the result"

         [ https://issues.apache.org/cayenne/browse/CAY-966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Øyvind Harboe updated CAY-966:
    ------------------------------

        Attachment: DropColumnToModel.java

    ObjRelationship's must also be removed.

    > ObjRelationsship's are not removed processing DropColumnToModel
    > ---------------------------------------------------------------
    >
    > Key: CAY-966
    > URL: https://issues.apache.org/cayenne/browse/CAY-966
    > Project: Cayenne
    > Issue Type: Bug
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Environment: all
    > Reporter: Øyvind Harboe
    > Assignee: Tore Halset
    > Attachments: DbEntity.java, DropColumnToModel.java, surefire-reports.zip
    >
    >
    > I'll attatch a modified DbEntity.java that fixes the problem here.... Basically the code below won't work right because the ObjRelationship's aren't removed.
    > MergerContext mergerContext = new ExecutingMergerContext(
    > payBackDataMap, dataNode);
    > for (MergerToken token : tokens)
    > {
    > if (token.getDirection() == MergeDirection.TO_DB)
    > {
    > token = token.createReverse(dataNode.getAdapter()
    > .mergerFactory());
    > }
    > token.execute(mergerContext);
    > }

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Tue Jan 22 2008 - 14:12:59 EST